Share via


_Exec (Windows Embedded CE 6.0)

1/6/2010

This function runs an executable (.exe) file.

Syntax

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

Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Other Resources

Scripting Host Functions