Command Prompt for Windows




Command Line Parameters

When the WinOne® Command Prompt is run from Explorer/Program Manager or any other program, then any command line parameters specified will be displayed at the command prompt and executed. These parameters can include any thing that can be entered at the command prompt, this includes File Extension Associations and Macros. The syntax for the WinOne® Command Prompt is as follows :-

WIN_ONE [ [USE=filename] [/A] [/C] [/K] [/U] parameters ...]
parametersSpecifies the command(s) to run after the WinOne® Command Prompt has started.
filenameSpecifies the file name of an initialisation file.
/ASwitch on ANSI text for redirected input/output.
/CPerform a command and exit.
/KPerform a command and continue.
/USwitch on Unicode text for redirected input/output.

The WinOne® Command Prompt stores all its configuration information in the default initialisation file WIN_ONE.INI, which is automatically mapped to the System Registry when the WinOne® Command Prompt is running under Windows NT onwards. To specify a different initialisation file include the "USE=" parameter. A new automatic mapping is created in the System Registry for the specified file name and the following System Registry key is created and used by the WinOne® Command Prompt :-

HKEY_CURRENT_USER\Software\filename

Specifying the switch /K is not necessary since this has the same effect as not specifying any switches. The /K switch is included for compatibility with CMD.EXE only.

Generally, the WinOne® Command Prompt will be started from the WinOne® Command Prompt icon in Explorer/Program Manager. To specify any parameters for the WinOne® Command Prompt icon in Explorer, firstly, right click on the WinOne® Command Prompt icon and select the Properties... option from the Context menu displayed. Secondly, simply add any parameters to the end of the Target command line that Explorer will run to start the WinOne® Command Prompt. The procedure is similar for the Program Manager. Firstly, select the Properties... option from the File menu in the Program Manager. Make sure that the WinOne® Command Prompt icon is selected and highlighted before selecting the Properties... option. Secondly, after the Properties window is displayed for the WinOne® Command Prompt icon, simply added any parameters to the end of the command line that the Program Manager will run to start the WinOne® Command Prompt.

For example, to set the WinOne® Command Prompt to have a high process priority class when started, then use the TASKS command and run the WinOne® Command Prompt as follows :-

WIN_ONE TASKS HIGH

Redirected input/output setting using the /A or /U is persistent. For example, using the /U switch will switch Unicode text on unitl it is switched off using the /A switch. The default text format is ANSI when the WinOne® Command Prompt is first installed. This setting can also be changed in the System Options tab.

Note:

Also see the Startup Batch File.