Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Add two shortcuts to your desktop: SecureDisk-OPEN and SecureDisk-CLOSE
- These shortcuts link to your new batch files:
- %USERPROFILE%\Documents\Scripts\SecureDisk-OPEN.bat
- %USERPROFILE%\Documents\Scripts\SecureDisk-CLOSE.bat
- With this setup, it's easy to mount, navigate, and dismount your secure container.
- When you run SecureDisk-OPEN, you'll be prompted for your VeraCrypt container password. The container will mount to the S: drive (you can change the drive letter in the batch file if needed), and the mounted drive will open in Windows Explorer.
- When you're done, click SecureDisk-CLOSE to close Explorer and dismount the container.
- 2) Use the attached batch files to set everything up:
- SecureDisk-OPEN.bat
- -----------
- @echo off
- REM SecureStorage keeps desktop confidential doocuments in VC container
- set CONTAINER=%USERPROFILE%\Documents\SecureDisk.dat
- set MOUNT_DRIVE_LETTER=S
- echo.
- echo 1. Open VeraCrypt container [ %CONTAINER% ] ...
- "C:\Program Files\VeraCrypt\VeraCrypt.exe" /hash sha-512 /v %CONTAINER% /l %MOUNT_DRIVE_LETTER% /a /q
- echo 2. Show SecureDisk drive ...
- START C:\Windows\explorer.exe %MOUNT_DRIVE_LETTER%:\
- SecureDisk-CLOSE.bat
- ------------
- @echo off
- REM SecureStorage keeps desktop confidential doocuments in VC container
- set CONTAINER=%USERPROFILE%\Documents\SecureDisk.dat
- set MOUNT_DRIVE_LETTER=S
- set DELAY=5
- echo.
- echo 1. Close VeraCrypt container [ %CONTAINER% ] ...
- IF EXIST %MOUNT_DRIVE_LETTER%:\NUL (
- "C:\Program Files\VeraCrypt\VeraCrypt.exe" /f /q /d %MOUNT_DRIVE_LETTER%
- echo.
- echo SecureDisk VeraCrypt container closed ...
- echo.
- )
- echo.
- echo exit in %DELAY% sec ...
- timeout %DELAY% > nul 2>&1
Advertisement
Add Comment
Please, Sign In to add comment