Notepad.exe Command Line Arguments Action: Print %SystemRoot%\system32\NOTEPAD.EXE /p "%1" Action: PrintTo %SystemRoot%\system32\notepad.exe /pt "%1" "%2" "%3" "%4" Where the arguments are as follows %1: filename to print %2: printer name %3: driver name: "WINSPOOL" <- standard default %4: port name: "NE01:" <- standard default I had a problem using the Windows XP command line utitility "print" to print a text file to a HP Deskjet 3940 print /d:localprintername filename print /d:LPT2 filename print /d:\\server\printer filename All failed when trying to print to the DJ3940 So the following command worked %SystemRoot%\system32\notepad.exe /pt "%ALLUSERSPROFILE%\Desktop\onsiteList.txt" "\\apf-ma-wb02\HPDJ3940_WB" rem "\\apf-ma-dc01\maHPLJ3380_R"