Jump to content
Sign in to follow this  
Glyph

Run command help

Recommended Posts

>"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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...