windows - WinExec with start command gives ERROR_FILE_NOT_FOUND -


in application, users can store command run @ point. right now, added "c:\program files\internet explorer\iexplore.exe http://www.google.com". invoked using winexec function. now, when command changed "start http://www.google.com", function returns error_file_not_found, while seems should work examples find online.

winexec starting processes. trying best done asking shell work out program associated http:// , display url that. need call shellexecute or shellexecuteex.

for example:

shellexecute(0, null, "http://www.google.com", null, null, sw_showdefault); 

the reason start not work winexec start not executable. it's built in command handled interpreter, cmd.exe. use winexec if passed cmd.exe (or value of comspec environment variable) , got cmd.exe call start. that's wrong way it.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -