Bob I said:
See "net use" and "If exist" in Windows Help and support. Also there is a
cmd prompt group that has some pretty sharp folks(cross posting this)
news://msnews.microsoft.com/microsoft.public.win2000.cmdprompt.admin
I have been meaning to ask advice or figure the following out myself
so I will just post my solution and describe where it has problems.
The following code WORKS on Vista, but not on 2003, nor on
XP if I recall the latter correctly.
Following is all one line (in a batch file):
@for /f "tokens=1-26 delims=\ " %%a in ('fsutil fsinfo drives') do @for %%A
in (%%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n
%%o %%p %%q %%r %%s %%t %%u %%v %%w %%x %%y %%z) do @fsutil fsinfo drivetype
%%A
=======================
Ugly but it works on Vista like this:
A: - Remote/Network Drive
C: - Fixed Drive
D: - Fixed Drive
E: - Fixed Drive
F: - CD-ROM Drive
G: - CD-ROM Drive
H: - CD-ROM Drive
J: - Remote/Network Drive
O: - Remote/Network Drive
P: - Remote/Network Drive
Q: - Remote/Network Drive
R: - CD-ROM Drive
S: - Remote/Network Drive
T: - Remote/Network Drive
U: - Remote/Network Drive
W: - Remote/Network Drive
X: - Remote/Network Drive
Y: - Remote/Network Drive
Z: - Remote/Network Drive