Considering the command: TrueCrypt.exe /q /e /v "dummy.tc"
1: Is there a way to dismount dummy.tc from the command line WITHOUT knowing its drive letter?
2: Is there a way to discover, after this command has executed, what drive letter dummy.tc was attached to?
I'm implementing a site-wide TrueCrypt deployment for our hundreds of thumbdrives used throughout the engineering team. It's quite common for a user to have upwards of a half-dozen thumbdrives sticking out of a computer at any given moment, as they need to update multiple machines simultaneously. My test rig has eleven(!) drives hanging out of it right now. That's a hard limit due to drive letter collisions, but the staff thinks it's a reasonable number.
A simple batch script included on every drive will iterate through all the *.tc volumes on a stick and mounts them individually via keyfiles and/or password prompts.
My documentation calls for users to selectively dismount a volume before ejecting the drive it resides on, but it's becoming a headache to keep the stick-volume-driveletter relations straight. I've accidentally slagged a volume already this morning by ejecting the wrong drive, and I have no faith that my users will be any better at keeping things straight.
A simple solution would be to have another batch script on each drive that would find all the volumes on that stick, dismount them, and eject the drive. However, as the volumes are attached to the next available driveletter, and TC only provides a simple exit code, I don't seem to have any way to find out what letter TC used. Dismount all isn't an option either, as it's quite likely a user would have files open on other volumes.
Any TC experts ever encounter a problem like this? Any suggestions?