rc = CreateProcessA("cmd.exe",...
last error is 2
In other words, you have to use something like "c:\windows\system32\cmd.exe" (or first call a function which searches the path for the executable :-) )
I found that I needed to
add "c:" before the "/c".
Any idea what that is about?
I don't see it mentioned in "cmd /?" nor the CreateProcess()
Because argv is the module name, C programmers generally ***repeat the module name as the first token in the command line***.
But it seems to me that this is quite misleading:...
It doesn't suggest that you're supposed to put something
before the "/c" as mentioned elsewhere.
|Location:||Huddersfield, West Yorkshire, UK|
|Nodes:||8 (1 / 7)|