in4matik Posted December 9, 2008 Share Posted December 9, 2008 Hi, I'm writing a script to automate the volume creation of an encrypted container with TrueCrypt. I'm almost done, but I have a bug/feature that prevents me from launching the required application. I'm trying to launch "C:\Program Files\Truecrypt\TrueCrypt Format.exe", but instead, "C:\Program Files\Truecrypt\TrueCrypt.exe" is launched... If I move TrueCrypt.exe to another folder, then "TrueCrypt Format.exe" is launched, as expected... Is there something I'm doing wrong? My script: $tcVolumeCreatorFullPath = "C:\Program Files\Truecrypt\TrueCrypt Format.exe" CODE;---------------------------------------------------------- ; 00 - Launch TrueCrypt Format application ;---------------------------------------------------------- If Run($tcVolumeCreatorFullPath) = 0 Then Exit $exitCodeLaunchTC EndIf Link to comment Share on other sites More sharing options...
DjDeep00 Posted December 9, 2008 Share Posted December 9, 2008 @im4matik...Check the helpfile for ShellExecute... ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) Link to comment Share on other sites More sharing options...
in4matik Posted December 9, 2008 Author Share Posted December 9, 2008 Awesome, it works. Thanks a lot! 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