troubleshooting Question

COM1 under Foxpro Dos & Windows XP ?

Avatar of ammounpierre
ammounpierre asked on
Microsoft DOSFoxProWindows XP
13 Comments1 Solution3413 ViewsLast Modified:
Hello guys,

I have a application in foxpro 2.5 dos running in Windows XP environment.
they got a cash drawer that opens when issuing a command to the com port.
under dos (command prompt) I created a text file called drawer.txt that contains 00000000 (8 zeros)
and created a batch file that copies that file to the com port
kick.bat
********
copy drawer.txt com1
**********************************
when in dos prompt I issue the command kick , the drawer opens.

So I opened my application and where I wanted to open the drawer, I wrote
!kick.bat
and closed the application thinking it will work ...
well it didnt !
it gives me "Error writing to port...."
please help me....

PS. there is a printer connected to the LPT port and it is functionning okay...
and the drawer is on COM1
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros