WA2LWinTools/lib/command.opt
The option file must have the same name as the related command variant ( e.g.: command.opt ).
The file format is OPTION=VALUE
Between the OPTION , the = and the VALUE are no spaces.
You can comment out any OPTION or completely remove the related setting line to use the default settings.
Example: VERBOSE=True
Default: VERBOSE=False
Example: DISABLESTATS=True
Default: DISABLESTATS=False
Possible settings are: SYS, SYSTEM, SHELL, EXECSHELL, EXEC, JAVA@SYS, JAVA@SYSTEM, JAVA@SHELL , JAVA@EXECSHELL and JAVA@EXEC.
Where the JAVA@... types load the JAVA_PATH=path;path;path... from the optional etc/java.cfg configuration file to allow to define additional locations of the COMMAND=java.exe command on the system.
Example: TYPE=SYSTEM
Default: TYPE=EXEC
Example: SHOWWINDOW=False
Default: SHOWWINDOW=True
Example: HIDECONSOLE=False
Default: HIDECONSOLE=True
In the PATH setting the environment variables %USERNAME%, %USERPROFILE%, %ProgramFiles%, %ProgramFiles(x86)%, %APPDATA%, %LOCALAPPDATA%, %INSTALLDIR%, %INSTALLDRIVE% and %ARCHITECTURE% can be used.
Where the %INSTALLDIR% variable contains the installation base directory of the WA2L/WinTools package, %INSTALLDRIVE% the drive letter (without colon) and the %ARCHITECTURE% is set to 32 on a 32-bit and to 64 on a 64-bit operating system.
Example: PATH=%USERPROFILE%\Documents\bin\FirefoxPortable;d:\bin\FirefoxPortable
Default: PATH=
This might be useful to do some preparations prior to the command execution.
The PREEXEC command is always started as type SYSTEM.
Example: PREEXEC="%INSTALLDIR%\lib\WScheduler.cmd"
Default: PREEXEC=
If this setting is a *.bat or *.cmd file, the TYPE=type shall be set to SYSTEM or SHELL.
If this setting is a *.exe or *.com file, the TYPE=type shall be set to EXEC.
In the COMMAND=... setting the same environment variables as in PATH=... can be used.
Example: COMMAND="%INSTALLDIR%\lib\Notepad2.exe"
Default: COMMAND=
In the OPTIONS=... setting the same environment variables as in PATH=... can be used.
Example: OPTIONS=/o0 /f "%INSTALLDIR%\etc\Notepad2.cfg"
Default: OPTIONS=
Example: OPTIONS=%INSTALLDIR%\lib\folderspopup
Default: OPTIONS=
Most likely this setting is needed on TYPE=SYSTEM when command line options containing special characters, as: (, ) and & have to be computed and a *.bat or *.cmd command is specified in the COMMAND=... setting.
Example: ESCAPEOPTIONS=True
Default: ESCAPEOPTIONS=False
Example: VERSION=0.8.15
Default: VERSION=
Example: AUTHOR=John Doe
Default: AUTHOR=
If HELPOPT is set empty, startprog will not display a usage message when invoking the -h option and passes that option to the command defined in the COMMAND setting. The usage display can then be handled by the started COMMAND.
Example: HELPOPT=
Example: HELPOPT=--help
Default: HELPOPT=-h
If INSTALLOPT is set empty, startprog will not handle the installation and the option is also not listed when displaying the usage message after invoking the HELPOPT command line option.
Example: INSTALLOPT=
Example: INSTALLOPT=--install
Default: INSTALLOPT=-i
If UNINSTALLOPT is set empty, startprog will not handle the de-installation and the option is also not listed when displaying the usage message after invoking the HELPOPT command line option.
Example: UNINSTALLOPT=
Example: UNINSTALLOPT=--uninstall
Default: UNINSTALLOPT=-u
If VERSIONOPT is set empty, startprog will not handle the version display and the option is also not listed when displaying the usage message after invoking the HELPOPT command line option.
Example: VERSIONOPT=
Example: VERSIONOPT=--version
Default: VERSIONOPT=-V
Example: MOREOPTIONS=
Example: MOREOPTIONS=options
Default: MOREOPTIONS=[ options ]
Example: MOREOPTDESC=
Example: MOREOPTDESC=-l list definitions
Default: MOREOPTDESC=[ options ] additional options
When SHORTCUTLOC is set to SENDTO COMMAND can be used thru the 'SendTo' menu.
If set to STARTUP it is installed to the 'Autostart' menu and the COMMAND will be executed 'On Login'.
If set to DESKTOP it is installed on the user's 'Desktop'.
Example: SHORTCUTLOC=STARTUP
Default: SHORTCUTLOC=SENDTO
This prefix is seen in the 'SendTo' menu when SHORTCUTLOC=SENDTO is defined.
Example: SHORTCUTNAME= vi
Default: SHORTCUTDESC=command
This text is seen in the 'SendTo' menu when SHORTCUTLOC=SENDTO is defined.
Example: SHORTCUTDESC=enhanced Notepad
Default: SHORTCUTDESC=
In the SHORTCUTOPTS setting the same environment variables as in PATH= can be used.
Example: SHORTCUTOPTS=--verbose
Default: SHORTCUTOPTS=
In the SHORTCUTDIR setting the same environment variables as in PATH= can be used.
Caution: do *not* set quotes ( ) around directories (even if there are spaces in a directory) and do *not* define a backslash ( \ ) at the end of a directory path.
Example: SHORTCUTDIR=%INSTALLDIR%\lib
Default: SHORTCUTDIR=
Example: SHORTCUTMODE=1
Default: SHORTCUTMODE=7
# # lib/np.opt - startprog options for: Notepad2 # # [00] 01.07.2017 CWa Initial Version # VERBOSE=False COMMAND="%INSTALLDIR%\lib\Notepad2.exe" OPTIONS=/o0 /f "%INSTALLDIR%\etc\Notepad2.cfg" + VERSION=4.2.25 AUTHOR=Florian Balmer
This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.