EasyManua.ls Logo

Black Box PI9120A - Creating Batch Files for IBM Pcs

Black Box PI9120A
41 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
32
INTELLIGENT PRINTER SWITCH
PLUS
5.5 Creating Batch Files for IBM PCs
On IBM compatible PCs, batch files are a convenient way of sending
commonly used software commands. To create batch files:
Step 1: At the DOS prompt type:
COPY CON: {name}.TXT <enter>
<PM CONNECT {port number}>[F6] <enter>
{name} is the name of the text file you’re creating to store the desired
command, {port number} is the number of the port you’re connecting
to, and [F6] stands for pressing function key 6. For example:
COPY CON: CONNECT2.TXT <enter>
<PM CONNECT 2>[F6] <enter>
Note that no spaces should be typed after the “>” bracket and before function
key 6 is pressed. After pressing function key 6, a ^Z will appear on the screen
at the end of the line. When the enter key is pressed, the screen will display:
1 File(s) copied
This indicates that a file {name}.TXT has been created which contains the
software command text. Normally it is not possible to use a word-processing
package to create this file, because most of these insert a line feed and
carriage-return character at the end of each line. A file created with these
extra characters could upset your printouts by inserting a blank line at the top of your
printout page. This could offset label printers by one line and cause laser printers
to output a blank page.
Step 2: At the DOS prompt type:
COPY CON: {name}.BAT <enter>
TYPE {name}.TXT > {pc printer port}: [F6] <enter>
{name} is the name of the batch file you’re creating, {pc printer port} is the
port (COM1, COM2, LPT1, LPT2, or LPT3) that you wish to be routed to the
required printer, and [F6] stands for pressing function key 6. For example:
COPY CON: CONNECT2.BAT <enter>
TYPE CONNECT2.TXT > LPT1: [F6] <enter>
As before, the screen will display “1 File(s) copied” which indicates that
a batch file {name}.BAT has been created containing the text “TYPE
{name}.TXT > {pc printer port}:”.
To send the software command that you have stored in {name}.TXT, type
the name of the batch file at the DOS prompt. This procedure can be used
to create a batch file to send any software command to any of your PC’s ports.