use Win32::Printer::Direct; Printfile('\\\\hardcoyp\\ApDev','test.txt');