Hi Peter, The command: system ">print temp.txt" prints, but only to the screen.
I can not get the command: PRINT [/D:device] [[drive:][path]filename[...]] to work. Going to the Control Panel for 'printers and other hardware' I get Properties Gestetner 2212 RPCS location blank Port 'Gestetner 2212' Description: Standard TCP/IP Port (I know the IP address, if that helps) Sharing Share name: Printer3 The command: system "PRINT temp.txt" produces: C:\Folder\temp.txt is currently being printed,' but nothing comes out of the printer. Opening the printer icon does not show any queued files. The command: system "PRINT /D:Printer3 temp.txt" produces: 'Unable to initialize device Printer 3' I'm using Windows XP professional. HL --- Peter Eisengrein <[EMAIL PROTECTED]> wrote: > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\>print /? > Prints a text file. > > PRINT [/D:device] [[drive:][path]filename[...]] > > /D:device Specifies a print device. > > > > > > -----Original Message----- > > From: Hugh Loebner [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 29, 2004 12:03 PM > > To: [EMAIL PROTECTED] > > Subject: Printing a text file > > > > > > Hello All, > > > > I can get perl to write a text file 'xyz.txt' to disk with no > > problem, but I > > don't know how to actually get my preferred printer to > > actually print it out. > > > > Now I manually drag the file(s) to the printer icon which > > invokes notepad, and > > the files print fine. > > > > Ultimately, I'd like to directly control the printer, but in > > the meantime, I'd > > be happy to simply direct notepad to print them. > > > > Is there a simple command to do this, eg something like > > > > system notepad 'xyz.txt', print > > > > Hugh Loebner > > > > > > > > > > _______________________________________________ > > Perl-Win32-Users mailing list > > [EMAIL PROTECTED] > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs