没有2000系统,不知道上面有哪些命令可以用
应该支持wmi吧?用vbs脚本:- strComputer = "."
- Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
- Set colDrives = objWMIService.ExecQuery("Select * from Win32_LogicalDisk")
- For Each objDrive in colDrives
- If objDrive.DriveType = 2 Then
- u = objDrive.Name
- Exit for
- End if
- Next
- WScript.Echo u
复制代码
|