Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
com1>com4 redirection in dos
Name: allen Date: August 22, 2002 at 03:27:07 Pacific
Comment:
I am not sure if you can help me or not? I have a DOS application that sends output on com1 or com2 only at 9600 Baud. My laptop only has com1 external port, com3 for the Internal Modem and a Virtual com4 as an IR port under Windows98 I now have a new Mobile Phone that communicates with my Laptop using IR. This does work, as I have downloaded the address book from the phone to the Laptop. The problem I have is that I wish to use the DOS application in a DOS Window to upload to the phone. I can not change the IR port down to com1, it will only use the Virtual com4. There is no means of changing the port. I need to select com1 in the application but the output needs to go out of the IR port com4 at 9600 Baud. Any suggestions would be appreciated.
Name: chris db Date: August 28, 2002 at 19:33:03 Pacific
Reply:
such a long shot I doubt it will work: edit the dos program, from dos, with edit /78 whatever.com search for the string 'com1' in the binary change the 1 to a 4. (make sure you've got a backup, and the zero key on the numeric keypad is toggled to 'replace' not to 'insert' or you'll mess up the binary. Then save it. I bet this doesn't work but I would try it anyway.
Summary: If I remember correctly first initialize the comport then send the lpt to the com. Haven't done this since using Diablo printers. It think the first one is mode com1: 9600,n,8,1,r the next is mode l...
Summary: In the unix csh, you can tell your program to read the input from the same file using "<<" redirection (ie, here is document). Is there a way to achieve this in DOS. The only way I know is to put your...
Summary: If you want to print the file using type you have to redirect it to the printer. For example: type file.txt > lpt1 You shouldn't have lost any DOS commands. Are you doing this from a sec. command pr...