取得連結網路磁碟機的資訊 (Get Mapped Network Drive Letter & UNC Path) with VBS
Set objNetwork = WScript.CreateObject("WScript.Network")
Set colDrives = objNetwork.EnumNetworkDrives
For i = 0 to colDrives.Count-1 Step 2
Wscript.Echo colDrives.Item(i) & vbTab & colDrives.Item (i + 1)
Next
沒有留言:
張貼留言