This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I originally asked this question at Superuser. Can anyone here help? It's specifically a TrueCrypt problem, so please remove this if it's not Batch-related enough for your tastes.
http://superuser.com/questions/517514/truecrypt-command-line-dismount-by-volume-name
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?
Backstory:
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?
Post Details
- Posted
- 11 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Batch/comme...