|
Hier die Komplette Batch, alles kopieren, in eine Text Datei abspeichern und die Endung in .bat umbenennen.
- BEGIN BATCH - @echo off color 0F title=TrueCrypt DVD Mount Skript
REM ################################################################################ set password=”abcABC123″ set keyfile1=”C:\Keys\Key1″ set keyfile2=”C:\Keys\Key2″
set application=%programfiles%\TrueCrypt\truecrypt.exe set containerpath=D:\Sicherung set containerfile=volume.tc set container=F:\volume.tc set mountsingle=Y REM ################################################################################
:start cls if exist %application% set application_check=OK if not exist %application% set application_check=MiSS if exist %container% set container_check=OK if not exist %container% set container_check=MiSS cls echo. ############################################################################## echo. # TrueCrypt DVD Mount Skript # echo. ################################################### 8bitnerd.wordpress.com ### echo. -( Single / Read Only )- echo. echo. [1] Mount echo. [2] Dismount echo. [3] Change Disc (Re-mount) echo. echo. -( Multiple / Writable )- echo. echo. [4] Mount echo. [5] Dismount echo. echo. -( Single Info )- echo. echo. TrueCrypt: %application_check% echo. Container: %container_check% echo. Mount: %mountsingle% echo. echo. echo. echo. Type [1-5] and press Enter set /p input= : if “%input%”==”1″ goto single_mount if “%input%”==”2″ goto single_dismount if “%input%”==”3″ goto single_change if “%input%”==”4″ goto multiple_mount if “%input%”==”5″ goto multiple_dismount if “%input%”==”0″ goto exit goto start
:single_mount %application% /v %container% /p %password% /l%mountsingle% /k %keyfile1% /k %keyfile2% /q /h n /c n /m ro goto start
:single_dismount %application% /q /d%mountsingle% goto start
:single_change %application% /q /d%mountsingle% cls echo.Open drive and change Disc. pause
%application% /v %container% /p %password% /l%mountsingle% /k %keyfile1% /k %keyfile2% /q /h n /c n /m ro goto start
:multiple_mount %application% /v “%containerpath%\DVD01\%containerfile%” /p %password% /lI /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD02\%containerfile%” /p %password% /lJ /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD03\%containerfile%” /p %password% /lK /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD04\%containerfile%” /p %password% /lL /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD05\%containerfile%” /p %password% /lM /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD06\%containerfile%” /p %password% /lN /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD07\%containerfile%” /p %password% /lO /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD08\%containerfile%” /p %password% /lP /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD09\%containerfile%” /p %password% /lQ /k %keyfile1% /k %keyfile2% /q /h n /c n %application% /v “%containerpath%\DVD10\%containerfile%” /p %password% /lR /k %keyfile1% /k %keyfile2% /q /h n /c n goto start
:multiple_dismount %application% /q /dI %application% /q /dJ %application% /q /dK %application% /q /dL %application% /q /dM %application% /q /dN %application% /q /dO %application% /q /dP %application% /q /dQ %application% /q /dR goto start
:exit exit - END BATCH -
Ihr benötigt TrueCrypt (Open Source) um das Skript nutzen zu können, zum editieren der .bat Datei empfehle ich euch Notepad++ (Open Source) und Where is it? (Shareware) zum indexieren.
|