March 22, 2005

CreateProcess can handle .bat and .cmd files!

Today I was surprised by the function CreateProcess. It seems that it has an undocumented feature: It can start “processes” with the extension bat and cmd!

The only documentation I could found was in Inside Microsoft® Windows 2000, Third Edition: If the file to run has a .bat or a .cmd extension, the image to be run becomes Cmd.exe

Maybe someone knowns of any kind of documentation in the MSDN?


Posted 2 years, 10 months ago on March 22, 2005
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/34/

Re: CreateProcess can handle .bat and .cmd files!
The SDK team of Microsoft will add a note about this in the SDK documentation in the near future.
Posted 2 years, 9 months ago by Martin Richter • @ • • Reply
Comment Trackback URL : http://blog.kalmbachnet.de/bblog/trackback.php/34/48/
Re: CreateProcess can handle .bat and .cmd files!
Thanks for the response! This would be great!
Posted 2 years, 9 months ago by Jochen Kalmbach • • • Reply
Comment Trackback URL : http://blog.kalmbachnet.de/bblog/trackback.php/34/49/

Comments have now been turned off for this post