Will2b Posted September 13, 2006 Posted September 13, 2006 Ok guys, I really do need your help her. I am relatively new to AutoIt, say just a bit more than 24 hours. But I spent quite a bit of hours last night and again today trying to find a means of connecting a network printer. I have browsed through several posts and online documentation. I thought I found the answer several times, but it turns out that none of them worked for me. Can anyone provide some assistance, I really could use it. I have mapping a network drive working fine, now I would like to put in wildcard fields so as to prompt for user input in terms of authentication. Any assistance would help. Thanks all.
Danny35d Posted September 13, 2006 Posted September 13, 2006 Look at my signature for NetPrinter it may help you... AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Will2b Posted September 15, 2006 Author Posted September 15, 2006 Look at my signature for NetPrinter it may help you...Thanks Danny.This is one of the scripts I worked with alreadyand didn't experience much sucess.I do not have a chice but to go back to them though.So I gonna try some more.Thanks again
lod3n Posted September 15, 2006 Posted September 15, 2006 (edited) Try this:useprinter("\\servername\printshare") func useprinter($uncpath) $serverAr = stringsplit($uncpath,"\") $server = $serverAr[3] if (ping($server)) then run(@comspec &' /c Rundll32 printui.dll,PrintUIEntry /in /n "' & $uncpath &'"',"",@SW_HIDE) endif endfunc Edited September 15, 2006 by lod3n [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
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