PantZ4 Posted May 9, 2008 Share Posted May 9, 2008 Very simple: Run("TrueCrypt.exe",@ScriptDir&"\TrueCrypt\") Exit Yet it fails. And yes the file is there. Map: The Script is placed in: D:\PortableApps\TureCryptPortable\ The file I want it to run is placed in: D:\PortableApps\TureCryptPortable\TrueCrypt\ Can't see what I'm doing wrong. It keep giving me the "Can't find file" error. Maybe I just need sleep to point out the flaw. Maybe someone can quickly spot out the error so I can get some rest? Thanks. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 9, 2008 Moderators Share Posted May 9, 2008 (edited) Very simple: Run("TrueCrypt.exe",@ScriptDir&"\TrueCrypt\") Exit Yet it fails. And yes the file is there. Map: The Script is placed in: D:\PortableApps\TureCryptPortable\ The file I want it to run is placed in: D:\PortableApps\TureCryptPortable\TrueCrypt\ Can't see what I'm doing wrong. It keep giving me the "Can't find file" error. Maybe I just need sleep to point out the flaw. Maybe someone can quickly spot out the error so I can get some rest? Thanks.The obvious: Is TrueCrypt.exe in the same directory as the script? If not, try running the full path. Edit: And I don't mean is it in a sub directory. Edited May 9, 2008 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted May 9, 2008 Share Posted May 9, 2008 Maybe someone can quickly spot out the error so I can get some rest? Thanks.The error would be that you are not passing the working directory to the Autoit script and also your relative use of paths still seems incorrect. If working directory passed is "D:\PortableApps\TureCryptPortable\" then you could use Run("TrueCrypt\TrueCrypt.exe", "TrueCrypt")oÝ÷ Úî±æ§i»(ë^¥«ajëh×6Run('"' & @ScriptDir & '\TrueCrypt\TrueCrypt.exe"', @ScriptDir & "\TrueCrypt") 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