Automatic Drive Letter Selection
Greetings,
I use a portable 80Gig USB drive where ever I go. When I plug-into someone else's machine, I run an initialization batch to setup the drive letters, enviroment vars, path settings, etc, the way I like. Then, on departure, I have a shutdown batch to put everything back.
A common setting that I have read about, including in this forum, is a batch to allow you to select the Drive Letter of your portable. This is then set to an enviroment variable for use with portable apps.
I didn't like having to always enter the drive letter, so I wrote an automatic method using the DEBUG utility to generate an errorlevel equal to the drive letter. I then substitute drive letter P: for that drive. (I haven't ever had to deal with a system that already used P:, or if it did, I didn't need access to that drive.)