                 WORDSTAR COMMAND-LINE SWITCHES

               Copyright 1989 by Robert J. Sawyer.  


     Here are the switches WordStar accepts on the command line.  
Note that this list is correct; the one in the WORDSTAR 
PROFESSIONAL RELEASE 5 USER'S MANUAL is less complete and has 
errors in it.  


CONFIGURATION FILES

/=       Load the specified configuration file, or, if 
         no filename is specified, run WordStar using 
         the installed default settings.  (A 
         configuration file is a 6-kilobyte file 
         holding the WordStar user area, with all the 
         settings that can be modified with WSCHANGE.)  
         This switch is only supported in WordStar 5 
         engineering releases 092 and above; however, 
         the program WSEX.ARC available in CompuServe 
         WordStar Forum Library 13 allows configuration 
         files to be used with earlier engineering 
         releases as well.  (To find out which 
         engineering release you have, press ^O? while 
         editing.  The engineering release is indicated 
         by the three characters at the right of the 
         word "#American."  


OPENING FILES

/D       Open the specified file as a document, or, if 
         no filename is specified, prompt the user for 
         the name of the document to edit.

/N       Open the specified file as a non-document, or, 
         if no filename is specified, prompt the user 
         for the name of the non-document to edit.

/S       Open an unnamed Speed Write file.  If you do 
         specify a filename either before or after this 
         switch, that filename is offered by WordStar 
         when you later save the Speed Write file.

/Onnnn   Open the specified file then move the cursor 
         to byte nnnn, expressed in decimal.  This is 
         useful if you've taken note of a location you 
         want to return to by jotting down the "Byte 
         count at cursor" reported by the ^Q? command 
         the last time you edited the same file.  If no 
         filename is specified, an error message is 
         displayed.  (It's slash-oh, not slash-zero.)  


PRINTING FILES

/P       Print the specified file using default 
         settings.  If no filename is specified, 
         display the Print dialogue box.  

/M       Merge print the specified file using default 
         settings.  If no filename is specified, 
         display the Merge Print dialogue box.  


RUNNING SHORTHAND MACROS

/[c      Execute Shorthand macro c from the Opening 
         Menu.  Any specified filename is ignored.  
         This switch does nothing if your default help 
         level is 4.

/Ec      Open the specified file then execute Shorthand 
         macro c.  If no filename is specified, an 
         error message is displayed.  


EXITING WORDSTAR

/X       Exit WordStar.  Filename /p /x will print 
         filename then exit to DOS.  Filename /x will 
         open filename in the default editing mode then 
         exit to DOS as soon as a command (such as ^KQ 
         or ^KD) is issued that normally returns the 
         user to the Opening Menu.  This is handy if 
         WordStar is being invoked from a batch file 
         (to print a series of documents) or from a 
         shell-to-DOS from another program.

