PUB2000: How to Print a Publication from a Command Line (207641)



The information in this article applies to:

  • Microsoft Publisher 2000

This article was previously published under Q207641

SUMMARY

In Microsoft Windows, you can use a command at the MS-DOS prompt or in the Run dialog box to print a publication without viewing it in Microsoft Publisher.

MORE INFORMATION

To print a publication from a command line, follow these steps:

  1. On the Windows Start button, click Run.
  2. Type the following command, and then press ENTER, substituting the appropriate values for <path> (the location of Mspub.exe), <path2> (the location of the file you want to print), and <filename> (the name of the file you want to print):
    <path>\mspub.exe /p <path2>\<filename>.pub
    						
    Be sure to put long filenames in quotation marks. Here are three sample command lines:
    c:\mspub\mspub.exe /p c:\document\report.pub
    
    "c:\program files\microsoft office\mspub.exe" /p c:\test.pub
    
    c:\mspub\mspub.exe /p "c:\my documents\july newsletter.pub"
    						
NOTE: If you type the name of a publication that does not exist, Publisher displays the Open dialog box. If you click Cancel, Publisher prints a blank page to your printer.

Modification Type:MajorLast Reviewed:6/29/1999
Keywords:kbhowto KB207641