How to determine whether a drive is TrueCrypt mounted? [closed]
-
23-01-2021 - |
Question
Is it possible, in a Windows batch file, to test if a certain drive letter was mounted by TrueCrypt?
Solution
I think this is not possible. You could get much information with wmic logicaldisk
but nothing will indicate that Truecrypt assigned the drive letter.
OTHER TIPS
As an Idea: (for anyone still finding this post)
You could make this C# Script over at the post #18021118 (which accesses truecrypt to retrive mount information) (there is also a VeraCrypt version over there.) ...
- into a commandline tool to be used from your windows batch (added a simple example here: http://github.com/BananaAcid/VeraCrypt-Cmd - replace the get mounts file with the one from the readme within)
- or use it directly with powershell
- or with an additional binary wich executes scripts on the windows NET Framework without compiling: cs-script.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow