Board index » Visual Studio » CreateProcess command line length
|
pmg
|
CreateProcess command line length
Visual Studio102
C:\WINNT\system32\cmd.exe /C \\Msnlfp01\public\PlaceA\PlaceB\PlaceC\PlaceD\MyBatch Nov-22-2005 123456 \\Msnlfp01\public\PlaceE\PlaceF\PlaceG\ThisFile.xxx Hi guys. I am trying to execute a DOS command like above from my application(vc6.0, mfc, non-unicode, win2k) by using CreateProcess(). Win2K works fine but I found that CreateProcess fails sometimes and command line length matters(In Win98, command processor would be c:\windows\command.com). CreateProcess(NULL,cmd,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); I tried to separate command processor string(C:\WINNT\system32\cmd.exe /c) and following command line into lpApplicationName and lpCommandLine but win98 seems that it doesn't like a option '/C'. What would be the max allowable length of cmd on win98 machine? Anybody had this problem? Thanks Bob - |
