An other time, i'm here with a problem ahahaha
after a lot of time spent in MSDN (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx) i created this part of code that open a file called system.exe
the code is compiled without any error but the file doesn't start. I've checked if the file exist, it exist but doesn't startup!
why? Thanks
Already done it
The GetLastError gives me the error 267, DIRECTORY_ERROR
I don't understand why, the directory exist .
You are talking about child process right?
I need to create a program that start an other program at the startup because if I put the other program in startup folder it doesn't work
So I need to start this other program at the startup just as the user is DoubleClicking it! Is this the right way?
It is possible that this program requires specific things set up. Use ShellExecute(Ex) and specify working directory exactly the same as the child EXE.
Why the target program does not run directly on startup ? Maybe is made by the developers to only be started from explorer.