DOS and OS/2 users can enter the BPRINT command at the command line to print a DOS file.
This command prints a DOS or OS/2 ASCII file to the network printer specified in your user profile.
The BPRINT command has parameters, or switches, that you can also enter to customize your print jobs. You can specify:
![]()
The number of copies to print ![]()
A banner page to print at the beginning of your job ![]()
An available paper format
If you use BPRINT to print a file whose name contains international characters, those characters do not appear on the banner page, but other characters are used in their place.
The command syntax of the BPRINT command is:
bprint filename [/P:service_name | /P:port] [/B:bannertext | /NB [/FORMS:paperformat]
The rest of this section describes the switches that make up the command syntax and listed in Table 10-1.
If you have a print service where FORMS type is other than STANDARD, the desired FORMS type must be defined using the /FORMS:paperformat switch along with the BPRINT command. The FORMS type is required even if the correct /FORMS:paperformat switch is defined in the BPRINT command line of the user profile.
The paperformat argument specified in a BPRINT profile command is accepted, but ignored for subsequent BPRINT commands. It should become the default, but currently is not treated as the default.
Example Printing a File from DOS
To print the file "autoexec.bat," enter:
bprint c:\autoexec.bat
Using /P /B Switches when Printing
To print the file report.doc to the print queue laserjet@sal@WCTUS, and specify the title "Status," on the banner page, enter:
bprint g:\status\report.doc /p:laserjet@sal@WCTUS /b:"Status"
Using /forms /nb Switches when Printing
To print the file config.sys to the same print queue, but use a different paper format and not print a banner page, enter:
bprint c:\config.sys /forms:Letterhead /nb
UNIX User Printing a UNIX File
To print a UNIX file from UNIX, enter:
bprint VNSLogFile-062193 /p:"Mkt laser@Mkt@WCTUS"
VINES Name: duncF@Mkt
VINES Password: