Question

Is it possible, in a Windows batch file, to test if a certain drive letter was mounted by TrueCrypt?

Was it helpful?

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.) ...

  1. 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)
  2. or use it directly with powershell
  3. 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
scroll top