473,806 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install Printers

Hi,

I created an application that installs network printers. Everything seems to
work oke...but the printer is not set to default. I use the following line
to install the printer

Shell("rundll32 printui.dll,Pri ntUIEntry /y /if /b ""HP LaserJet 4000"" /f
D:\Install\Driv ers\HP4000\WinX P\hp222ip6.inf /r ""\\SSMD\" & pq &
".Printers.Amst erdam.NL.SSMD"" /m ""HP LaserJet 4000 Series PCL 6""")

I read that the /y switch is for setting the printer to default, this seems
not to be working.

Can anybody help me?
Nov 20 '05 #1
0 1110

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

Similar topics

3
6830
by: Matt Chan | last post by:
Hi, I am trying to create a python script to install a set of network printers. I have had success using an os.popen statement, using rundll32 and printui.dll. This takes way too long. Can someone point me in a quicker direction? thanks, Matt
0
1732
by: Sneid | last post by:
Hi I explain my title: i'm actually developping an application for privilege-limited users. They all have a laptop, and are not local administrators of the machine I 'm developping a program that allows them to create profiles with IP, Proxy, Network Drives and printers For drives and printers, they can supply a username/password so they can connect to file servers/printers without having to change the local user... (or do a RunAs, but...
7
9080
by: trint | last post by:
How can I add all the network printers to a combobox? Thanks, Trint
0
919
by: Ketan Kolge | last post by:
Hi, I have to create a application which will install a printer. I have list of printers, and the machine where the printer is connected. Just to hide the info about the network I want to give him a exe which he can install and that will install a printer for him. Basically the user should not use "Add Hardware Wizard" I have no clue about how hardware instillation works. Please let me know where I can get more info about this. Regards...
1
2881
by: Jm | last post by:
Hi all Is there an easy way to install a network printer by code in Vb.Net (Meaning connecting to a printer from a server for eg \\MyServer\MyPrinter, so no drivers are required or anything like that). In vb6 i used Wsh to install it, should i continue using the same method or does .NET have a better way of doing it ? Thanks
0
1159
by: Dave | last post by:
If a user navigates to the printers on a domain controller, they can double click on the Printer Icon and it will install the printer on their machine. That's great as long as the user knows what server the printer server is. I have imbed a floor map on a page and I'd like to put hyperlinks to the appropriate printer on the Print Server. This way as long as a user can get to my site, they can map their own printers without having to get...
2
8556
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked printer, but nothing to add a local printer, assign it a port & driver.
0
1589
by: Ravigwipro | last post by:
Hi, I m able to get the printers object to know what are the printers had been installed and all. here my requirement is i have to write a data from VB to MS Word. for the page setup i have to get printer info. problem here i m facing is , i m getting the printer info and am able to write the complete document in that case it is working fine..but while generation of document if it gets fail due to some runtime error, in the immediate run...
5
4983
by: jdugal | last post by:
Guys, I am using Windows XP Pro (SP1) and suddenly my printers (local & network) have disappeared from the Printers & Faxes menu. If I try to re-install any printer I get an error message saying "operation could not be completed" Does anyone know whats caused this and of any way of fixing this without having to re-load windows again ? Thanks
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.