In Tip 049, we used:

NET USE LPTx: \\computername\sharename /PERSISTENT:YES

to enable a DOS app to print to a network printer.

You can also print directly to a printer share by using:

print /d:\\<printserver>\<sharename>  <drive>:\<path>\<filename>

where <drive>:\<path>\<filename> is the full path to the file you wish to print.