Glyph Posted December 5, 2006 Share Posted December 5, 2006 Case $upbutton Run("Update.exe",@scriptdir & "Backup\") Cannot find the file, it's a valid place for it to... anything wrong with the format? Heres the order @ScriptDir --> Backup --> Update.exe tolle indicium Link to comment Share on other sites More sharing options...
NELyon Posted December 5, 2006 Share Posted December 5, 2006 (edited) Why not just do Case $upbutton Run(@ScriptDir &"Backup\Update.exe") ?? Edited December 5, 2006 by D-Generation X Link to comment Share on other sites More sharing options...
Glyph Posted December 5, 2006 Author Share Posted December 5, 2006 >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\myname\Desktop\Insane Update v0.0.1\Insane Update.au3" C:\Documents and Settings\myname\Desktop\Insane Update v0.0.1\Insane Update.au3 (46) : ==> Unable to execute the external program.: Run(@ScriptDir &"Backup\Update.exe") The system cannot find the file specified. Is why. tolle indicium Link to comment Share on other sites More sharing options...
NELyon Posted December 5, 2006 Share Posted December 5, 2006 (edited) Case $upbutton Run(@ScriptDir &"\Backup\Update.exe") Might have made a typo on my part Edited December 5, 2006 by D-Generation X Link to comment Share on other sites More sharing options...
Glyph Posted December 5, 2006 Author Share Posted December 5, 2006 YESSS!!!, You rock dude... THANK YOU! tolle indicium Link to comment Share on other sites More sharing options...
Valuater Posted December 5, 2006 Share Posted December 5, 2006 maybe... Case $upbutton $location = @scriptdir & "Backup\" $program = $location & "Update.exe" if FileExists($program) Then $run_exe = FileGetShortName($program) Run($run_exe, $location) Else MsgBox(64, "Error", "the following program ws not found " & @CRLF & $program & " ", 3) EndIf 8) 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