Hi everyone my name is bradley and I am looking for someone who knows .vbs or .bat programming to give me a code I could use that will show the drives that are being used for example it will show C:\ D:\ A:\ ect if this is possible thanks for any help or if you know a usful website i could visit that has.vbs and .bat coding on it with this sort of thing thanks
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
("Select * from Win32_LogicalDisk")
For Each objDisk in colDisks
Wscript.Echo "DeviceID: "& vbTab & objDisk.DeviceID
Wscript.Echo "File System: "& vbTab & objDisk.FileSystem
Next
Win32_LogicalDisk Class (Windows)
provides all logical disks on the device you run the code on.
can easiliy be manipulated to run locally against a remote machine
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.