Jump to content

Recommended Posts

Posted

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.

  • Moderators
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.

Posted

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

:(

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...