_Exec

This function runs an executable (.exe) file.

void _Exec(
  BSTR FileName,
  BSTR CommandLine,
  short Flag 
);

Parameters

  • FileName
    Name of the executable file.
  • CommandLine
    Optional. Command line to pass to the executable file.
  • Flag
    Optional. If a nonzero value is specified, execution of the script is delayed. If the value of this parameter is not specified or is equal to zero, then execution of the script continues after running the executable file specified by the FileName parameter.

Remarks

You can call this function from a script that Cescript.exe executes.

Requirements

OS Versions: Windows CE 4.2 and later.

See Also

Scripting Host Functions | Scripting Host Tool

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.