-----Original Message-----
steven said:
I need a way to gather disk information from command
line,, I just need local logical drive letters captured in
an aschii file, comma delimited,, in the following format
servername,C,D,E,F
Hello Stven,
with the free psinfo out of pstools from
www.sysinternals.com
the following batch will do for all servers in the var SrvList and
their *Fixed* disks. This requires your account has the rights on the
remote servers.
If you want cd-rom drive letters too, you should
change: find "Fixed"
to : findstr "Fixed CD-ROM"
@echo off & setlocal EnableExtensions EnableDelayedExpansion
set SrvList=Iterno Mars
for %%A in (%SrvList%) do (
set DrvInf=%%A
echo/Server: [!DrvInf!]
for /F "tokens=1 delims=:" %%B in ('psinfo \\!DrvInf! - d^|find "Fixed"') do (
set d=%%B
set DrvInf=!DrvInf!,!d:~-1!
)
echo/!DrvInf!
REM echo/!DrvInf!>testfile.txt
)
HTH
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
.
Mathew,, thanks,, can you tell me what some of the