Sign in to follow this  
Followers 0
PantZ4

Run function problem

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

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

:(

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