PaulDotCom mailing list archives

Drive letter from volume name


From: irongeek at irongeek.com (Adrian Crenshaw)
Date: Tue, 16 Mar 2010 08:33:18 -0400

It was something like this:
for /F %i in ('WMIC logicaldisk where "DriveType=2" list brief ^| find
":"') do set ufddrive = %i\

but his shows all UFDs, to get just the one by volume name I used:
for /F %i in ('WMIC logicaldisk where "DriveType=2" list brief ^| find
"MyVoulmeName"') do set ufddrive = %i\


Thanks,
Adrian

On Tue, Mar 16, 2010 at 6:50 AM, gold flake <ptinstructor at gmail.com> wrote:

Which was ...?

On Sat, Mar 13, 2010 at 12:44 AM, Adrian Crenshaw <irongeek at irongeek.com>
wrote:
Thanks, but  Tim Medin solution ended up being pretty slick. Tested it,
and
it worked great. Thanks.

Adrian

_______________________________________________
Pauldotcom mailing list
Pauldotcom at mail.pauldotcom.com
http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
Main Web Site: http://pauldotcom.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pauldotcom.com/pipermail/pauldotcom/attachments/20100316/185893f3/attachment.htm 


Current thread: