Jump to content

TrueCrypt Auto mounting batch file for multiple drives


robrob22

Recommended Posts

Config Windows To Make Trucrypt.exe be in the system path

Any questions ask truecrypt with command "truecrypt /?"

Replace After /v , Replace After /k also replace after /l for drive letter

.

-----------------CODE UNDER-----------Save As Automount.bat--------------------------------------------

REM TrueCrypt mounting script (version 2)

REM Written by Mark Ursino (allthingsmarked.com)

REM Modifications are allowed, but please include these comments

@echo off

cls

set /P thepass="Enter the volume pasword: "

truecrypt /v whereHarddiskPartitionIs /k C:werekeyis /l d /m /a /p %thepass% /b /q

truecrypt /v whereHarddiskPartitionIs /k C:werekeyis /l e /m /a /p %thepass% /b /q

cls

-------------------------------------CODE END-----------------------------------------------------------------------------------------

.

.

Replace After /d with drive letter you want example /dd for drave D: or /de for drave E:

----------------------CODE UNDER-----------Save As Unmount.bat---------------------------------------------------------------------------------------

REM TrueCrypt unmounting script

REM Written by Mark Ursino (allthingsmarked.com)

REM Modifications are allowed, but please include these comments

@echo off

cls

truecrypt /dd /q

truecrypt /de /q

cls

--------------------------------Code ENDS--------------------------------------------------------------------------------------------------

.

Why not add the bat files to your USB drive? Never tried  this code. If anyone gets autorun.inf to work please Post

.

----------------------CODE UNDER-----------Save As autorun.inf------------------------

[autorun]

open=cscript Automount.bat

ACTION = Mount TrueCrypt Volume

----------------------CODE ENDS----------------------------------------------------------------

Link to comment
Share on other sites

This completely defeats the purpose of truecrypt...doesn't it

If your saving you password in the bat file than whats the point?

Heres a fix

-----------------CODE UNDER-----------Save As Automount.bat--------------------------------------------

REM TrueCrypt mounting script (version 2)

REM Written by Mark Ursino (allthingsmarked.com)

REM Modifications are allowed, but please include these comments

@echo off

cls

truecrypt /v whereHarddiskPartitionIs /k C:werekeyis /l d /m /a /p %1 /b /q

truecrypt /v whereHarddiskPartitionIs /k C:werekeyis /l e /m /a /p %2 /b /q

cls

-------------------------------------CODE END-----------------------------------------------------------------------------------------

That would allow you to type

automount lamepassword1 lamepassword2

right into the run... command or into a command prompt and it wouldn't prompt you for the password, this way you could do diffrent passwords for each volume

*I haven't used true crypt so if this is completely wrong im just guessing

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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