Since your DOS program allows printing -> select LPTx as Printer port (replace x with your printer port number, usually LPT1), because most DOS apps access the printer hardware (through int17) directly this way.
Finally, click OK/Apply to save the new (Program Information File)PIF editor settings.
Since you are connected to a network, and would like your DOS application(s) to be able to print to a network printer: add this command line to a batch file that starts your DOS program, or type itinto a DOS box:
NET USE LPTx: \\ComputerName\ShareName /PERSISTENT:YES
Replace "x" with the printer port number, "ComputerName" with your computer name, and "ShareName" with your shared name for the specific network you are logging into (no quotes).