Pao Posted May 15, 2007 Share Posted May 15, 2007 Hello, I cannot run a program contained in a subfolder (it needs to be there) I tried this: #include <File.au3> $apppath = _PathFull (@ScriptDir & "..\subfolder\") Run("$apppath & program") What's wrong? Can anyone help me? Link to comment Share on other sites More sharing options...
MHz Posted May 15, 2007 Share Posted May 15, 2007 Double periods are up a folder, so your not finding the subfolder @ScriptDir & "\..\folder\" ; Up one directory level, then continue path to folder. @ScriptDir & "\subfolder\" ; Path to subfolder Link to comment Share on other sites More sharing options...
Pao Posted May 15, 2007 Author Share Posted May 15, 2007 Oh hello again Mhz. You're right about "\subfolder\". The command doesn't work yet however.. is this right? Run("$apppath & program") Link to comment Share on other sites More sharing options...
November Posted May 15, 2007 Share Posted May 15, 2007 (edited) Oh hello again Mhz. You're right about "\subfolder\". The command doesn't work yet however.. is this right? Run("$apppath & program") Hi Run($apppath & "program.exe") Cheers Edited May 15, 2007 by november Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
Pao Posted May 16, 2007 Author Share Posted May 16, 2007 It works now. Thank you November Link to comment Share on other sites More sharing options...
November Posted May 16, 2007 Share Posted May 16, 2007 It works now.Thank you NovemberGlad to ear!Cheers mate... have a nice scripting day Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] 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