Sign in to follow this  
Followers 0
tweaker

Execute Program not in path

7 posts in this topic

Probably an extremely simple syntax but how do I execute a program that isn't in the system path?

Tweaker

Share this post


Link to post
Share on other sites



Probably an extremely simple syntax but how do I execute a program that isn't in the system path?

Tweaker

specify the full path ....

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Probably an extremely simple syntax but how do I execute a program that isn't in the system path?

Tweaker

Using which syntax? I've tried Run, ProcessWait and ShellExecute.

The path I'm trying to execute is C:\program files\winamp\winamp.exe

Tweaker

Edited by tweaker

Share this post


Link to post
Share on other sites

$Program_Location = "C:\program files\winamp\winamp.exe"

If FileExists($Program_Location) Then
    Run($Program_Location)
Else
    MsgBox(64,"Error!!", "The file does not exist" & @CRLF & $Program_Location, 5)
EndIf

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Using which syntax? I've tried Run, ProcessWait and one other.

The path I'm trying to execute is C:\program files\winamp\winamp.exe

Tweaker

RunWait("C:\program files\winamp\winamp.exe")

Show your syntax when you want assistance ...

:)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Perfect, thank you. I don't know why it didn't work the first 20 times but that program_location did the trick.

Tweaker

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  
Followers 0