This article shares the usage of blogger VeraCrypt


Main Content

Previously shared, here I share one of the methods.
Creation Example:

VeraCrypt

Usage Scenario: Storing hardware as USB drive

VeraCrypt
U盘内文件结构:
1、VeraCrypt文件夹 - 便携版目录
2、Vault.CNSAM - 加密卷文件
3、启动-挂载.bat - 一键挂载卷
4、终止-卸载.bat - 一键卸载卷

Specific Content
1、VeraCrypt便携版下载
2、Vault.CNSAM is the encrypted volume file created
3、Start-Mount.bat

@echo off
chcp 65001 >nul
setlocal
set "VOL_NAME=加密-个人U盘"
if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
    start /B "" "%~dp0VeraCrypt\VeraCrypt-arm64.exe" /v "%~dp0Vault.CNSAM" /m label=%VOL_NAME% /q /e
) else if exist "%SystemRoot%\SysWOW64%" (
    start /B "" "%~dp0VeraCrypt\VeraCrypt-x64.exe" /v "%~dp0Vault.CNSAM" /m label=%VOL_NAME% /q /e
) else (
    start /B "" "%~dp0VeraCrypt\VeraCrypt.exe" /v "%~dp0Vault.CNSAM" /m label=%VOL_NAME% /q /e
)
endlocal

4、Terminate-Unmount.bat

@echo off
setlocal
if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
    start /B "" "%~dp0VeraCrypt\VeraCrypt-arm64.exe" /q /d
) else if exist "%SystemRoot%\SysWOW64%" (
    start /B "" "%~dp0VeraCrypt\VeraCrypt-x64.exe" /q /d
) else (
    start /B "" "%~dp0VeraCrypt\VeraCrypt.exe" /q /d
)
endlocal