>Hi
>
>I am installing a visual foxpro point of sale application. Im am using
>epson thermal printers for receipts ect. 2 or 3 times a day my customer
>complains of a Spool 32 error. As another vendor supplied the hardware,
>so I got around the problem by outputting the printing to a DOS text file
>and then doing a RUN command to copy the text file out to LPT1:
>
>This works fine but now I get the Black windows associated with a run command
>within visual foxpro. can I stop the window appearing or any thoughts on the
>spool 32 error
Check Ed Rauh's Api_apprun class here in download section. You can run a DOS (or any other) task by setting properties (command line, directory to run in etc) and calling methods of his class. Your little DOS task can run minimized; for as much as I've used it, it runs minimized but temporarily steals focus. Maybe the current version gives you more control, haven't checked.