Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Switching default printers from the command line

Switching default printers from the command line

Forum Windows 2000/NT : Windows 2000/NT General Discussion - Switching default printers from the command line

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsnt.print (More info?)

 

Hi,

I need to know if it's possible and if so how to, switch my default printer
from a command line (within a batch file) in Windows NT4 workstation. I need
to be able to change the printer briefly so i can print a job (via the
command: "notepad /p filename.txt" ) to force a non-dos printer to print the
job, then switch the default printer back again. The usual default printer is
directly attached to a com port, and the one I want the job printed to is
attached to another workstation (WinXP) and shared to the network.

Can anyone help, please? TIA.

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Switching default printers from the command line
Go to:

There are 1074 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them