Sign in to follow this  
Followers 0
Will2b

Connecting Network printer

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



Look at my signature for NetPrinter it may help you...


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by lod3n

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0