17. september 2003 - 15:32
Der er
7 kommentarer og
1 løsning
DOS-kommando til at reaktivere printerport
Hej!
Jeg savner en DOS-kommando, der kan reaktivere min printerport. Når jeg arbejder på min bærbare pc og fx tager alle ledninger fra for at arbejde lidt i sofaen, så får jeg et problem, når jeg bagefter tilslutter printerstikket (parallel) for at skrive ud. Løsningen er, at jeg genstarter pc'en for at "reaktivere" porten. Findes der en DOS-kommando, der kan hjælpe mig med det? (Når jeg vil reaktivere min netværksforbindelse kan jeg fx skrive: ipconfig /renew - der må være noget til svarende til printerporten).
På forhånd tak for hjælp.
:o)
Udstyr: Dell Latitude D800, Minolta QMS 2350 Desklaser, Windows XP
17. september 2003 - 15:55
#1
--------------- MS-DOS v6.22 Help: MODE (configure printer) ----------------
<Notes> <Examples> <Index>
----------------------------------------------------------------------------
MODE (Configure Printer)
Configures a printer connected to a parallel printer port.
This version of the MODE command sets the characteristics for an
IBM-compatible or Epson-compatible printer connected to a parallel printer
port (LPT1, LPT2, or LPT3).
Syntax
MODE LPTn[:] [c][,[l][,r]]
MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
Parameters
LPTn
Specifies the parallel port to which the device is attached. Valid
values for n are in the range 1 through 3.
If you omit any of the following three parameters, MODE uses the most
recent setting for the omitted parameter. If you are using the shorter
form of the syntax (without the words COLS=, LINES=, and RETRY=), the
MODE command "recognizes" the parameters by their positions. Thus, if
you do not specify a value for a parameter, you must still type the
comma that precedes the next parameter.
COLS=c
Specifies the number of characters (columns) per line: 80 or 132. The
default value is 80. You can abbreviate this parameter by omitting COLS=
and specifying a value for c.
LINES=l
Specifies the vertical spacing and the number of lines per inch: 6 or 8.
The default value is 6. You can abbreviate this parameter by omitting
LINES= and specifying a value for l.
RETRY=r
Specifies the retry action to take if a time-out error occurs when MODE
attempts to send output to a parallel printer. This parameter causes
part of MODE to remain resident in memory. The following list shows each
valid value for r and a brief description of its meaning:
B Return "busy" from a status check of a busy port.
E Return an error from a status check of a busy port.
P Continue retrying until printer accepts output.
R Return "ready" from a status check of a busy port.
N Take no retry action (default value). You can also specify NONE
for this value.
If you are using the MODE command over a network, do not use any of the r
values.
You can abbreviate this parameter by omitting RETRY= and specifying a value
for r.
***
<Syntax> <Examples>
----------------------------------------------------------------------------
MODE (Configure Printer)--Notes
Update to MODE parameter
The RETRY=R setting provides the same support as the P parameter did in
previous versions of MS-DOS.
Breaking out of a time-out loop
To break out of a time-out loop, press CTRL+BREAK.
Setting parallel-printer modes
For parallel-printer modes, you can use PRN and LPT1 interchangeably.
***
<Syntax> <Notes>
----------------------------------------------------------------------------
MODE (Configure Printer)--Examples
Suppose you want to be able to print 80 characters per line and 8 lines per
inch on a parallel printer that is connected to the second parallel printer
port (LPT2). To do this, type the following command:
mode lpt2:80,8
Because 80 characters per line is the default setting, you could achieve the
same result by typing the following command:
mode lpt2:,8
Suppose that, when printing a file, you want your system to keep trying to
print the file until it is successful. To do this, type the following
command:
mode lpt2:,8,b
To stop your system from continually retrying to print, press CTRL+BREAK or
type the MODE command without specifying a value for r.
***
--------------------------------------------------------------------------------------------------------------------------------------------------------
MODE (Configure Printer)--Examples
Suppose you want to be able to print 80 characters per line and 8 lines per
inch on a parallel printer that is connected to the second parallel printer
port (LPT2). To do this, type the following command:
mode lpt2:80,8
Because 80 characters per line is the default setting, you could achieve the
same result by typing the following command:
mode lpt2:,8
Suppose that, when printing a file, you want your system to keep trying to
print the file until it is successful. To do this, type the following
command:
mode lpt2:,8,b
To stop your system from continually retrying to print, press CTRL+BREAK or
type the MODE command without specifying a value for r.
***
----------------------------------------------------------------------------
17. september 2003 - 16:00
#2
Det burde ikke være nødvendigt at reaktivere din printerport. Det lyder som om din printerdriver er lidt for glad for at snakke med printeren, og derfor får i svime når den pludselig ikke kan få forbindelse. Prøv at se om der ikke findes en "corporate" eller minimal printerdriver til din printer.
22. september 2003 - 12:30
#4
hej guys - undskyld det sene svar.
humax -> det fattede jeg ikke et klap af.
tonnybrandt -> du har fuldstændig ret, men desværre findes der ikke en anden driver.
thill -> kan du ikke lige forklare, hvad dit trick gør - jeg er betænkelig ved en bat-fil (findes der én i forvejen?).
:o)