PC Review


Reply
Thread Tools Rate Thread

How to determine default printer AND then set as LPT1

 
 
Ray
Guest
Posts: n/a
 
      22nd Dec 2003
So here's my problem. I have DOS app X, that needs to be redirect to
[Windows Default Printer]. The Windows default printer will vary from user
to user, and possibly vary as the user changes it. The DOS app is hard
coded to print to LPT1.

In any Windows environment, you can add LPT1 to any printer. In DOS
commands you can tell LPT1 = \\printerlocation\printername But - the key
there is that you know the printername/location. Does anybody have any
clean/simple/quick ways of scripting somethat that I could preface the DOS
app with to basically do a set of LPT1 to DefaultPrinterX. The setting of
LPT1 is a straight forward two word operation, however, I can't think of any
clean way to determine what exactly the current Default Printer is. It
could be IP/IPX or even local (in which case LPT1 is already happy camper).

Any thoughts? I have found one article on it, but it doesn't seem to do
what I want, too much scripting for something that I believe should be far
easier. I found this:

http://oldlook.experts-exchange.com/..._20786291.html

I don't mind using a cscript to pull something, but if there is a simplified
DOS command I could simply toss into the .bat file that I have that kicks
off the DOS app, then life all the easier. As always, changing app code is
a no-no that ain't gonna happen anytime in my lifetime.

I thoroughly appreciate it!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determine default printer dans Microsoft Windows 2000 Printing 1 1st Jun 2004 04:06 PM
Redirecting default printer (which is unknown) to LPT1 Ray Windows XP General 1 22nd Dec 2003 08:58 AM
How to set LPT1 to Default printer? Ray Microsoft Windows 2000 Printing 2 21st Dec 2003 07:38 PM
XP direct to LPT1 port and a Windows defined printer for LPT1 Windows XP Print / Fax 0 24th Nov 2003 10:47 PM
How can I determine the status of the default printer Raymond Martin Microsoft VB .NET 3 1st Sep 2003 12:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 PM.