 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
K-Lel
Joined: 26 Jun 2004 Posts: 6
|
Posted: Mon Jun 28, 2004 11:33 pm Post subject: IŽneed something about printers |
|
|
Hello:
IŽm from Argentina. And I need to know how can I make a script for knowing all about the printers, its status, how many pages, etc.
ThankŽs |
|
| Back to top |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Tue Jun 29, 2004 11:33 am Post subject: |
|
|
This is something which is used to set/connect a printer (I guess not what you've expected).
| Quote: | Set Default Printer (SDP) version 1.50 Documentation
-----------------------------------------------------
What is it?
SDP is a command line utility for setting which printer/output-device
is to be used by default under Windows 95, 98 and NT. It will not run
under Windows 3.1.
Why did I make it?
I had to make print outs every morning automatically using task scheduling
software using NotePad & WordPad using the little know /p command line
option. (aside: NotepPad /p SDP.TXT automatically loads, prints, and
closes this doc.) However, if someone sent a fax or something the previous
day, the print outs would go to the fax instead of the printer. I needed
A utility that would make the printer the default output every morning.
I created SDP and I set my scheduling software to run it before the morning
print outs and... guess what? No more problems.
How do you use it?
The basic usage is: SDP.EXE <printer description>
Just type in all or part of the printer's name and/or port and SDP will
select the first device that it matches. The printer description is
CASE SENSITIVE! Epson is not the same as EPSON to SDP. You should run
SDP without parameters to see the case used. Also do no use quotes or
chevrons (< >) on the command line, just what it asks for.
Example: SDP.EXE Okidata
Running SDP without parameters gives you the help screen that shows which
printers are installed (i.e. selectable) and their complete, case sensitive
description. It displays the printer's name and port separated by a comma.
You can enter this entire description as shown or any part of it. If
the printer description was: HP LaserJet 4P,\\network\hp you could
enter: SDP.EXE 4P,\\net and SDP would find it.
SDP can be run from a DOS window, a DOS batch file, the Run command on the
Start Menu or you can create a shortcut with the <printer description>
after the program's name. From a DOS batch file, it's a good idea to use
the START command with the /w wait option.
Example: START /W SDP.EXE Epson
* Note: Windows NT users should not use the START command if they
intend to use SDP errorlevel setting feature.
This will cause the DOS batch file to wait until SDP is done setting the
default printer before continuing with the next command. |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|