1.

Solve : simple batch file headache.?

Answer»

I need help with my batch file which opens a parallel cash drawer connected to lpt1 between the computer and printer. The drawer opens with the "bell" ASCII code (or ^G).
My batch file simply reads as follows:

Copy ^G > LPT1
^Z

That's it !!!! When I run this batch file, it produces the bell sound and opens the drawer. My problem is that it also prints to my Lpt1 printer the FOLLOWING message.

"file cannot be copied to itself"

how can I get the bell (^g) to ring but have no message SENT to the printer ?
I'm using xp pro.Try using the TYPE command instead of the copy command.



Discussion

No Comment Found