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 <[email protected]> wrote:

> Which was ...?
>
> On Sat, Mar 13, 2010 at 12:44 AM, Adrian Crenshaw <[email protected]>
> wrote:
> > Thanks, but  Tim Medin solution ended up being pretty slick. Tested it,
> and
> > it worked great. Thanks.
> >
> > Adrian
> >
> _______________________________________________
> Pauldotcom mailing list
> [email protected]
> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
> Main Web Site: http://pauldotcom.com
>
_______________________________________________
Pauldotcom mailing list
[email protected]
http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
Main Web Site: http://pauldotcom.com

Reply via email to