Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @rem ----- ExeScript Options Begin -----
- @rem ScriptType: console
- @rem DestDirectory: temp
- @rem Icon: default
- @rem ----- ExeScript Options End -----
- @echo off
- IF Exist X: (Set Log=X:\Copy2Ram.log) Else (Set Log=NUL:)
- IF Exist C:\Program?Files\TrueCrypt\TrueCrypt.exe (Goto _Local) Else (Goto _Portable)
- :_Local
- IF Exist X: (Echo Found TrueCrypt on Drive C >>%Log%)
- C:
- cd\
- cd %ProgramFiles%\TrueCrypt
- rem TrueCrypt.exe %1 /l t /e /k %Ram%\%KeyFile% /q /s /m rm
- goto _End
- :_PortErr
- Echo ERROR!! TrueCrypt not Found on Drive C or on Portable Drive.. HALTING!!!! >>%Log%
- goto _End2
- :_Portable
- IF Exist X: (Echo Did NOT find TrueCrypt on Drive C, Loading it from Drive %SRC% >>%Log%)
- IF NOT Exist %SRC%\TrueCrypt\TrueCrypt.exe (goto _PortErr)
- %SRC%
- cd\
- cd TrueCrypt
- :_End
- Copy TrueCrypt.exe %ram% >>%Log%
- Copy *.sys %ram% >>%Log%
- IF Defined TC (C:) else (%Ram%)
- cd\
- IF Defined TC (cd %Ram%)
- TrueCrypt.exe %1 /l t /e /k %KeyFile% /q /s /m rm
- :_End2
- IF Exist X: (Echo Deleting Files from the Temp Directory >>%Log%)
- CleanEdit.bat 2
- :_EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement