tweaker Posted January 24, 2007 Share Posted January 24, 2007 Probably an extremely simple syntax but how do I execute a program that isn't in the system path? Tweaker Link to comment Share on other sites More sharing options...
Developers Jos Posted January 24, 2007 Developers Share Posted January 24, 2007 Probably an extremely simple syntax but how do I execute a program that isn't in the system path?Tweakerspecify the full 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...
tweaker Posted January 24, 2007 Author Share Posted January 24, 2007 (edited) Probably an extremely simple syntax but how do I execute a program that isn't in the system path?TweakerUsing which syntax? I've tried Run, ProcessWait and ShellExecute.The path I'm trying to execute is C:\program files\winamp\winamp.exeTweaker Edited January 24, 2007 by tweaker Link to comment Share on other sites More sharing options...
BrettF Posted January 24, 2007 Share Posted January 24, 2007 Run ("C:\program files\winamp\winamp.exe") Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Valuater Posted January 24, 2007 Share Posted January 24, 2007 $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) Link to comment Share on other sites More sharing options...
Developers Jos Posted January 24, 2007 Developers Share Posted January 24, 2007 Using which syntax? I've tried Run, ProcessWait and one other.The path I'm trying to execute is C:\program files\winamp\winamp.exeTweakerRunWait("C:\program files\winamp\winamp.exe")Show your syntax when you want assistance ... 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...
tweaker Posted January 24, 2007 Author Share Posted January 24, 2007 Perfect, thank you. I don't know why it didn't work the first 20 times but that program_location did the trick. Tweaker 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