1
   

Listing printers under dos prompt

 
 
Reply Thu 15 Mar, 2007 01:15 am
hi everyone Smile i'm making a batch file which allows removing, adding and setting default printer under win xp, it works great but i'd also like to add the option in the batch file to list the current printers installed, preferably by share name since adding with rundll32.dll printui is done by share name. Any ideas how this can be done?

Thanks alot,
michael
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 709 • Replies: 4
No top replies

 
Region Philbis
 
  1  
Reply Thu 15 Mar, 2007 04:57 am
michael,

i don't know the answer, but will follow along.

every time i re-boot at work, a batch file loads two dozen printers.
i only use 5 or 6 of them, so i manually delete the ones i don't need.

a batch file to counter this would come in handy...
0 Replies
 
DrewDad
 
  1  
Reply Thu 15 Mar, 2007 07:15 am
Don't know about doing it under the DOS prompt, but Microsoft has a nice repository of scripts for just about any need.

http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
0 Replies
 
Perdition
 
  1  
Reply Thu 15 Mar, 2007 08:34 am
I've been able to show locally connected printers with
net view hostname | find "Print"

but i have not been able to show remotely connected printers with my batch file as of yet, any ideas?
0 Replies
 
DrewDad
 
  1  
Reply Thu 15 Mar, 2007 08:38 am
I think you need to move from using the command prompt to using Windows Scripting Host.

Windows Scripting Host will allow you to do anything that you can do in the GUI. The command prompt is pretty limited.
0 Replies
 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » Listing printers under dos prompt
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 05/18/2024 at 04:50:39