473,396 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Installing a Windows Printer

D
I would like to create a script for Windows 2000 that will create a
Standard TCP/IP printer port and install a printer (I have the
applicable printer drivers needed for the install on a network share).
My plan is to use py2exe and distribute (also via network share) the
script so that administrators, or even users, can easily install the
printer. Is this possible? If so, I would appreciate it if someone
could steer me in the right direction in terms of how to begin (i.e.
libraries needed, sample code). Thanks!

Aug 7 '06 #1
1 2021
Jon
Hi D,

I would suggest that you look here
http://msdn.microsoft.com/library/de...tspol_7mgj.asp
at AddPort and and AddPrinter. Though I have not tried to use them in
python, I would assume that using win32com
[http://www.python.net/crew/mhammond/...ownloads.html] or the like
you'd be able to make use of those functions.

Jon

D wrote:
I would like to create a script for Windows 2000 that will create a
Standard TCP/IP printer port and install a printer (I have the
applicable printer drivers needed for the install on a network share).
My plan is to use py2exe and distribute (also via network share) the
script so that administrators, or even users, can easily install the
printer. Is this possible? If so, I would appreciate it if someone
could steer me in the right direction in terms of how to begin (i.e.
libraries needed, sample code). Thanks!
Aug 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

54
by: Sathyaish | last post by:
I am trying to print to the printer. I am using a VC++ 6.0 compiler on Win 2K, but I get an error saying that stdprn is not defined. Why is that? Is it because of Windows, I am guessing? Do I have...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
1
by: Stu | last post by:
Hi, I have been asked to write an application that stores a copy of any item printed on a Win2k/XP machine. The app is to act as a printer in the standard windows printer dialogue, and grab any...
3
by: Mukesh | last post by:
Hi friends i wants to install a service (MS application Block) on the server using a web application. Can i do this if yes then how can i do this I m using MS VisualStudio.net 2003, C#, .net1.1...
1
by: shanmugam1234 | last post by:
I want the sample prototype for installing the printer without showing the Add printer wizards by windows. what i mean is what the add printer wizard is doing, that should be done through c# code,...
7
by: Morias | last post by:
I have been trying to install a Zebra LP2844 on a computer running Windows XP. When using the add printer wizard I get an error that simply tells me "The printer could not be installed," but when...
3
by: printline | last post by:
Hello Guys I cannot print from a locally installed printer that is mapped to a windows 2003 sever. I have installed the printer locally and can print locally. I connect to the windows 2003...
1
by: =?Utf-8?B?U3RhY3k=?= | last post by:
I installed Windows XP Service Pack 3 (KB936929) and Update for Windows XP (KB951978) last week and ever since then, I am getting an "out of memory" message every time I try to print or "print...
2
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.