VBS代码: Dim fso,oShell Set fso = CreateObject("Scripting.FileSystemObject") Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run "SID.bat",0,true If fso.DriveExists("G") Then '这个G改为你的虚拟盘的盘符号 oShell.run ("isCSicli logouttarget "&ReadSID),0,true: WScript.Sleep 1000 end if If fso.DriveExists("G") Then '这个G改为你的虚拟盘的盘符号 oShell.run ("iscsicli logouttarget "&ReadSID),0,true: WScript.Sleep 1000 end if If fso.DriveExists("G") Then '这个G改为你的虚拟盘的盘符号