flyonthewall Posted October 30, 2007 Share Posted October 30, 2007 i'm using autoit to run a .vbs script to install printers. any user in the company can log onto our intranet, click on a link and install a printer. is there any way to do this directly from autoit? works great, but i'm hoping i don't need all the .vbs scripts around. ; ; Installs HP 4700 printer ; RunWait (@ComSpec & ' /c "\\server\apps\vbscripts\printers\hp4700nv.vbs /q"', @TempDir, @SW_HIDE) ; ; MsgBox - HP 4700 NV Done ; MsgBox (4096, "Printer Install", "HP 4700 NV Install Complete", 5) hp4700nv.vbs '***************************************** ' Adds HP Color LaserJet 4700 PCL 6 NV ' '***************************************** Set WshNetwork = CreateObject("WScript.Network") WshNetwork.AddWindowsPrinterConnection "\\tgcfps02\HP Color LaserJet 4700 PCL 6 NV" thks for any assistance! Link to comment Share on other sites More sharing options...
Joon Posted October 30, 2007 Share Posted October 30, 2007 (edited) ;~ ***************************************** ;~ Adds HP Color LaserJet 4700 PCL 6 NV ;~ ***************************************** $WshNetwork = ObjCreate("WScript.Network") $WshNetwork.AddWindowsPrinterConnection ("\\tgcfps02\HP Color LaserJet 4700 PCL 6 NV") Edited October 30, 2007 by Joon Link to comment Share on other sites More sharing options...
flyonthewall Posted October 30, 2007 Author Share Posted October 30, 2007 ;~ ***************************************** ;~ Adds HP Color LaserJet 4700 PCL 6 NV ;~ ***************************************** $WshNetwork = ObjCreate("WScript.Network") $WshNetwork.AddWindowsPrinterConnection ("\\tgcfps02\HP Color LaserJet 4700 PCL 6 NV") thks so much joon. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now