There are three different ways to print text files using the LAUNCH EXTERNAL PROCESS command. The DOS commands PRINT, COPY, and TYPE can all be used to print text files.
The following three examples will all print the contents of the myFile.txt file to the printer on port LPT1:
With the PRINT command:
$myCommand:="PRINT C:\\myFile.txt /d:LPT1:"
With the COPY command:
$myCommand:="COPY C:\\myFile.txt LPT1:"
With the TYPE command:
$myCommand:="TYPE C:\\myFile.txt > LPT1:"