Type your question

Commandline & Environment

Commandline Options

Following command line parameters are available in BushTripInjector:

–configfile “<full filename config file>”

This parameter tells BushTripInjector which configuration file to use. You can use all internal variables inside of the path.

This parameter is optional. If neither a command line parameter nor an environment variable is set, then BTI uses “%LocalAppData%\BushTripInjector\BushTripInjector.config” as the configuration file.

Examples:

  • BushTripInjector.exe –config “%BTIHOME%\MyConfiguration.xml”
  • BushTripInjector.exe –config “c:\MyGlobalConfig.config”
–file “<full filename BTI file>”

With this parameter BushTripInjector loads the corresponding mission file. You can use all internal variables inside of the path. The file extension must be “.bti“.

This parameter is optional. If you do not add this parameter, BushTripInjector will open without a mission or automatically load the last mission, depending on your settings.

Examples:

  • BushTripInjector.exe –file “%Documents%\BushTripInjector\discovery-hawaii.bti”
  • BushTripInjector.exe –file “d:\myTrips\bushtrip-hawaii.bti”

Environment Variables

Another possibility to define the path to the configuration file is to use a Windows environment variable.

BushTripInjectorConfig=<fullfilename configfile>

This can be set on Process-, User- and Machine-Level. If a command line parameter is set, the environment variable is ignored. You can use all internal variables inside of the path.

This is optional. If neither a command line parameter nor an environment variable is set, then BTI uses “%LocalAppData%\BushTripInjector\BushTripInjector.config” as the configuration file.

Examples:

  • BushTripInjectorConfig=%BTIHOME%\MyConfiguration.xml
  • BushTripInjectorConfig=c:\MyGlobalConfig.config

Internal Variables

For all paths in BushTripInjector, you can use internal variables. Those will be replaced on runtime to get the full path and name of a file or directory.

%BTIHOME%This is the installation path of BushTripInjector, where the .EXE is saved.
%DESKTOP%Your Desktop.
This is the folder named Desktop in Window Explorer in “My Computer”
%DOCUMENTS%Your Documents folder.
This is the folder named Documents in Window Explorer in “My Computer”
%PICTURES%Your Image and Pictures folder.
This is the folder named Pictures in Window Explorer in “My Computer”
%MUSIC%Your Music and Sound folder.
This is the folder named Music in Window Explorer in “My Computer”
%LOCALAPPDATA%Your local application data folder.
Usually this is c:\users\<yourname>\appdata\local, but it can also be configured.
%APPDATA%Your roaming application data folder.
Usually this is c:\users\<yourname>\appdata\roaming, but it can also be configured.
%USERPROFILE%Your Profile folder
Usually this is c:\users\<yourname>, but it can also be configured.
%PERSONAL%Your Documents repository.
Usually this is the same as %DOCUMENTS%, but can also be configured.
In this article