Jump to content

Recommended Posts

Posted

no mater what i do i can not map a network printer and i am the SysAdmin using any of the functions offerd in autoit.

note that i do not want to use the "call dll" and the "printui.dll".

i have tried it also with the latest release of autoit.

i do not have any problem mapping an actual drive.

please help

Udi

Posted

no mater what i do i can not map a network printer

What does this display for the printer you try to use?

run("cmd /k net use \\server\printershare")
run("cmd /k net view \\server")

regards, rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

  • 1 month later...
Posted

I am currently trying to do this, the only thing I found for mapping was: DriveMapAdd

But that does not seem to add a printer in any way I can think of, maybe I just do not know the syntax for it.

But since the above poster kind of abandoned this, and it is the exact question I have let me show the info you requested from him, that I get:

C:\Documents and Settings\username>net use \\site-app2\siteprt010
Local name
Remote name    \\site-app2\siteprt010
Resource type    Print
Status          OK
# Opens        0
# Connections    2
The command completed successfully.

The other command produced a lot of info, mostly redundant, showing every shared folder and printer, but this is the one I am aiming for:

SITEPRT009   Print  (UNC)
                SITEPRT009

Is there a different command to map a network printer or again, do I just not know the syntax?

"Human kind cannot gain anything without first giving something in return, to obtain; something of equal value must be lost."The Help File is truly your friend.

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
×
×
  • Create New...