Web Hosting, Design, & Coding forum

General discussion

Mapping a network printer using Python

As a new programmer, I have been trying to gain a better knowledge of the Python programming language. I am currently working on a project that requires me to map a network printer; however, I am not sure how to do this.

I have been successful in mapping a drive to a network location, but have been unsuccessful in mapping a network printer to my computer.

Any tips, links, or code is greatly appreciated! Thanks.

-Andrew

Discussion is locked
You are posting a reply to: Mapping a network printer using Python
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Mapping a network printer using Python
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: mapping network printer

In reply to: Mapping a network printer using Python

Collapse -
Python script

In reply to: Re: mapping network printer

Thanks for the link, Kees. I checked it out and found the information interesting.

However, if at all possible, I would like to use all Python script to map a network printer. I have been researching this off and on throughout the day and have not found useful code examples. If you come across any more information that you feel may be useful, I would greatly appreciated it!

Likewise, I will post the correct code on here once I have it working for others with the same issue.

Collapse -
How do you map to a network folder in Python?

In reply to: Python script

In NET USE, it's a simple variant. It might be the same in Python.

Kees

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

SMART HOME

This one tip will help you sleep better tonight

A few seconds are all you need to get a better night's rest.