Archive: Problem with Exec and ExecWait


Problem with Exec and ExecWait
:confused: ExecShell open 'something' works fine... but I am having no luck with Exec or ExecWait.

Exec 'c:\windows\notepad.exe'
ExecWait 'c:\windows\calc.exe'

I've tried "" instead of ''. I don't get it...


Try using some variables. They would work much better than that of just typing out the location. Plus, someone's windir is could be different than yours.

-DJ


i will try that too... but still... i'm not testing this on anyone else's system, just locally, so the path is 100% correct. also, i am assuming they are using shell api calls here... winexec and shellexecute - winexec should work even without a full qualifying path, just so long as the exe you are trying to open is in your PATH statement. in that case, the windows folder is almost always part of the system PATH, so all i should have to do is Exec notepad.exe and it should work. I get nothing though - not even an error message. :/