From e670129392414623a6b8e65ed3dfa7762290982c Mon Sep 17 00:00:00 2001 From: Dmytro Sheyko Date: Fri, 9 Jul 2021 23:00:58 +0300 Subject: [PATCH] #124 Replaced %HOMEDRIVE%%HOMEPATH%->%USERPROFILE% --- resources/StartGateway.bat | 2 +- resources/StartTWS.bat | 2 +- userguide.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/StartGateway.bat b/resources/StartGateway.bat index b33e1e3..ea7c683 100644 --- a/resources/StartGateway.bat +++ b/resources/StartGateway.bat @@ -32,7 +32,7 @@ setlocal enableextensions enabledelayedexpansion set TWS_MAJOR_VRSN=978 -set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\config.ini +set CONFIG=%USERPROFILE%\Documents\IBC\config.ini set TRADING_MODE= set TWOFA_TIMEOUT_ACTION=exit set IBC_PATH=%SYSTEMDRIVE%\IBC diff --git a/resources/StartTWS.bat b/resources/StartTWS.bat index 4290610..66d3992 100644 --- a/resources/StartTWS.bat +++ b/resources/StartTWS.bat @@ -22,7 +22,7 @@ setlocal enableextensions enabledelayedexpansion set TWS_MAJOR_VRSN=978 -set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\config.ini +set CONFIG=%USERPROFILE%\Documents\IBC\config.ini set TRADING_MODE= set TWOFA_TIMEOUT_ACTION=exit set IBC_PATH=%SYSTEMDRIVE%\IBC diff --git a/userguide.md b/userguide.md index 446de2d..5891398 100644 --- a/userguide.md +++ b/userguide.md @@ -335,7 +335,7 @@ script files to reflect this. | -------- | ------------------------- | --------------------------------------| | Windows | IBKR TWS program files | `C:\Jts` | | | IBC program files | `C:\IBC` | -| | config.ini | `%HOMEDRIVE%%HOMEPATH%\Documents\IBC` | +| | config.ini | `%USERPROFILE%\Documents\IBC` | | Unix | IBKR TWS program files | `/home//Jts` | | | IBC program files | `/opt/ibc` | | | config.ini | `/home//ibc` | @@ -381,7 +381,7 @@ filestore: Note that this folder may also be addressed using environment variables like this: - `%HOMEDRIVE%%HOMEPATH%\Documents` + `%USERPROFILE%\Documents` - on Unix it is the `/home/` directory. @@ -464,7 +464,7 @@ There are two ways that IBC can locate your edited `config.ini` file. - if you do not specify a configuration file name, IBC will expect to find a file named `config.ini` in the current computer user's private filestore. For - Windows users, the location is `%HOMEDRIVE%%HOMEPATH%\Documents\IBC`. For Unix + Windows users, the location is `%USERPROFILE%\Documents\IBC`. For Unix users, it is `~/ibc`. ### Starting IBC