Guest sbducker Posted June 15, 2004 Share Posted June 15, 2004 extreme newbie here, sorry if this is a softball question. I had complied a script that launched an outside application.I used the command Run("myfilename.exe","c:",@sw_maximize)or something very similar.It worked beutifully...for a few hours.Then I started to get errors: "Error: Unable to execute the external program." "The system Cannot find the File specified"I Checked, and it was still there. I used the sample run command (notepad.exe) from the read me, and it worked.OK, follow closes here, I located the Notepad.exe @ C:. Still worked. I deleted that version of notepad, and renamed myfile.exe to notepad.exe.When I ran the script it launched Notepad still! (not myfile) Strange?I rebooted, and ran the script again, and still launched Notepad! Where is it coming from?Has anyone seen anything similar? Link to comment Share on other sites More sharing options...
Guest sbducker Posted June 15, 2004 Share Posted June 15, 2004 I also attempted to use the @comspec method and still no success. From the C-prompt I can run Myfile.exe by typing "myfile" so it is there and operational. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 15, 2004 Developers Share Posted June 15, 2004 Try to change the "myfilename.exe" to "c:\myfilename.exe" (or the correct path). SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Arctor Posted June 15, 2004 Share Posted June 15, 2004 Try RunWait("c:\myfilename.exe") or RunWait("c:\myfilename.exe","",@SW_MAXIMIZE) You don't have to use @ComSpec to start .exe files @ComSpec is the command.com or cmd.exe. Depends on the OS. These are Interpreters to run batchfiles. arctor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now