Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WinCE: exit code of cmd.exe when running a batch file

Status
Not open for further replies.

Ekkehard

Programmer
Jul 23, 2010
1
0
0
DE
Hi @ll,

I'm running a .bat file by using the CreateProcess() API. This means that cmd.exe is started and used to execute my .bat file. The .bat file itself calls another application and I can see that it receives the exit code of 3 (which is what I expect). But cmd.exe returns an exit code of 0.

My OS is WindowsCE 5.0.

My question is: How can I manage it to return the exit code 3 from cmd.exe?

Regards,
Ekke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top