CommandWindows()

Previous Next

Executes a Windows command. The difference with CommandSystemForeground() is that CommandWindows() does not use a DOS box, and the command is executed in the background, causing the application to continue immediately. Because a DOS box is not used, you cannot use CommandWindows() to execute DOS commands (for example, MKDIR, DEL, DIR, etc.). Use CommandSystemForeground() to execute these commands.

Syntax

CommandWindows( command, parameter(s) )

 

Command is the command line that is sent to the operating system. This can be anything that you can execute by means of Windows' Run option. Parameter(s) is (are) the parameter(s) expected by the command.

Example

CommandWindows( 'winword.exe', 'test.doc' )

 

 

Applies to

Windows OS only