Command Line

 


Use keywords to find the content you
are looking for with in the site.

Command Execution and Precedence

When a program or command is run from the WinOne® prompt, there are a number of rules which resolve conflicts that can occur when there are several programs or commands that have the same file name but have a different file name extension. In order to resolve these conflicts, internal commands are given the highest precedence, otherwise when a command is entered with no file extension, then the extensions .EXC, .LNK, .PIF, .COM, .EXE, .CMD and .BAT are tried, in that order.

The PATH environment variable is used to locate a command or program when it can not be found in the current directory. When a command or program can not be located, WinOne® will assume a path has been specified and will attempt to change to the specified path. This process is referred to as Automatic Directory Changing. Should this fail then the error message Bad command or file name is displayed.

All text mode type programs and Windows programs can be executed from the WinOne® prompt. When a program is executed, then the WinOne® prompt will not appear until the program has completely finished executing. The user can place an executing program in the background before it has completed executing, and thereby displaying a new WinOne® prompt, by pressing the control key and the z key together (ie. CTRL Z). By default, WinOne® will not wait for non-text mode type programs to complete executing, before displaying a new WinOne® prompt (eg. NOTEPAD.EXE etc). To change this behaviour see Miscellaneous Options.

Many Windows or non-text mode type programs allow command line arguments to be past on the command line, similarly to text mode type programs and commands. For example, to edit a file called REPORT.TXT, enter at the WinOne® prompt :-

NOTEPAD REPORT.TXT

Copyright © 1995-2018 Lucien Cinc, All Rights Reserved
WinOne® is an Australian registered trademark

Go to the Australian Command Line Software web site.