Overclock.net banner
1 - 3 of 3 Posts

· Old dog, old tricks
Joined
·
10,279 Posts
Discussion Starter · #1 ·
Can I make Createprocess launch an exe that is somewhere on the Internet?
I have the direct address of the .exe, but keep getting error codes 2 or 3.
 

· Premium Member
Joined
·
10,671 Posts
This is a huge security issue. CreateProcess is not the same as ShellExecute - you can't give it an Internet path.

Win32 Error #2 - ERROR_FILE_NOT_FOUND ("The system cannot find the file specified")
Win32 Error #3 - ERROR_PATH_NOT_FOUND ("The system cannot find the path specified")

You need to first download the EXE to the local computer (using any method of your choosing), and then launch it from the local file system.
 

· Old dog, old tricks
Joined
·
10,279 Posts
Discussion Starter · #3 ·
Yes, I ended up using URLDownloadToFile to do that
smile.gif
Thanks
 
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top