--- In [email protected], "acs322000" <[EMAIL PROTECTED]> wrote: > Now, the next question you may want to ask is, how do I know that V: > *IS* the drive letter of my USB drive? You don't, as a USB drive letter > can vary, but I combine two techniques to bypass this problem: > > 1. in the batch file, right before setting ROOTDRV, add some code that > looks through all drives for a well-know volume label or filename --I > use the name of the batchfile itself, gotta be "reasonably unique" > 2. use map.exe to map %ROOTDRV% to V: as a well-known, fixed alias -- > this comes handy with some programs that insist of writing drive > letters into their ini files. > > Hope it helps, > --sgp
Thanks, that does help. I accomplished step 2 by using the DOS subst command; I didn't have map.exe. But, how do I search for a unique filename or vol label? How do I grab that Drive letter and place it into a variable? My thumbdrive does have a volume label so I assume that searching for that would be fastest. Is there a way to search only root directories of all drives? Thanks again for your help ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h74gada/M=362131.6882499.7825260.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1122919876/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
