‘=============================================================== ‘ ‘ NAME: EnumPrinters01.vbs ‘ ‘ AUTHOR: Neal Walters ‘ DATE : 2/27/2005 ‘ ‘ http://VBScript-Training.com ‘=============================================================== Set WshNetwork = WScript.CreateObject(“WScript.Network”) Set oDrives = WshNetwork.EnumNetworkDrives Set oPrinters = WshNetwork.EnumPrinterConnections WScript.Echo “Network drive mappings:” For i = 0 to oDrives.Count – 1 Step 2 WScript.Echo “Drive ” & oDrives.Item(i) & ” = ” & oDrives.Item(i+1) [...]
Read More...- Subscribe via RSS
Pages
Categories
Blogroll
Tags
Add Folder browser Collections delete Dictionary Object Disk Drives Drives Enumerate Excel Explode File File I/O Files FileSystemObject Folder Folders FSO Hardware HTML HTTP Post I/O Input List MS-Excel Name/Value Pairs Output Prompt Read ReadAll ReadLine Recursion Recursive RegEx Regular Expressions remove Scripting.Dictionary Scripting.FileSystemObject Show spreadsheet User Input Web Write WriteLine Write to File XML