dailynets

VC 2 shortcuts

Jul 23rd, 2025
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.64 KB | Source Code | 0 0
  1. 1) Add two shortcuts to your desktop: SecureDisk-OPEN and SecureDisk-CLOSE
  2. These shortcuts link to your new batch files:
  3. %USERPROFILE%\Documents\Scripts\SecureDisk-OPEN.bat
  4. %USERPROFILE%\Documents\Scripts\SecureDisk-CLOSE.bat
  5. With this setup, it's easy to mount, navigate, and dismount your secure container.
  6. 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.
  7. When you're done, click SecureDisk-CLOSE to close Explorer and dismount the container.
  8.  
  9. 2) Use the attached batch files to set everything up:
  10.  
  11. SecureDisk-OPEN.bat
  12. -----------
  13. @echo off
  14. REM SecureStorage keeps desktop confidential doocuments in VC container
  15. set CONTAINER=%USERPROFILE%\Documents\SecureDisk.dat
  16. set MOUNT_DRIVE_LETTER=S
  17. echo.
  18. echo 1. Open VeraCrypt container [ %CONTAINER% ] ...
  19. "C:\Program Files\VeraCrypt\VeraCrypt.exe" /hash sha-512 /v %CONTAINER% /l %MOUNT_DRIVE_LETTER% /a /q
  20. echo 2. Show SecureDisk drive ...
  21. START C:\Windows\explorer.exe %MOUNT_DRIVE_LETTER%:\
  22.  
  23. SecureDisk-CLOSE.bat
  24. ------------
  25. @echo off
  26. REM SecureStorage keeps desktop confidential doocuments in VC container
  27. set CONTAINER=%USERPROFILE%\Documents\SecureDisk.dat
  28. set MOUNT_DRIVE_LETTER=S
  29. set DELAY=5
  30. echo.
  31. echo 1. Close VeraCrypt container [ %CONTAINER% ] ...
  32. IF EXIST %MOUNT_DRIVE_LETTER%:\NUL (
  33.     "C:\Program Files\VeraCrypt\VeraCrypt.exe" /f /q /d %MOUNT_DRIVE_LETTER%
  34.     echo.
  35.     echo SecureDisk VeraCrypt container closed ...
  36.     echo.
  37. )
  38. echo.
  39. echo exit in %DELAY% sec ...
  40. timeout %DELAY% > nul 2>&1
  41.  
Advertisement
Add Comment
Please, Sign In to add comment