MarionTaylor
asked on
How to run a WScript batch file ?
I have a file with the following WScript code. What type of file do I save it as so it will run ?
REM ** Set the Enviroment **
Dim objNetwork
Set objNetwork = CreateObject("WScript.Netw ork")
REM ** Remove existing network printers **
objNetwork.RemovePrinterCo nnection "LPT1:", True
REM ** Attach the Network printers **
objNetwork.AddWindowsPrint erConnecti on "\\server\hp"
objNetwork.AddWindowsPrint erConnecti on "\\server\Generic"
REM ** Set the Default Printer **
objNetwork.SetDefaultPrint er"\\serve r\Generic"
REM ** Set the Enviroment **
Dim objNetwork
Set objNetwork = CreateObject("WScript.Netw
REM ** Remove existing network printers **
objNetwork.RemovePrinterCo
REM ** Attach the Network printers **
objNetwork.AddWindowsPrint
objNetwork.AddWindowsPrint
REM ** Set the Default Printer **
objNetwork.SetDefaultPrint
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.