![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 13:16 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » Automatically run after receiving character 1 from the serial port? |
| Printable Version 1,122 / 2 |
| Floor1 medalas | Posted 2004-02-19 00:00 |
| 初级用户 Posts 21 Credits 189 | |
|
Under DOS, how can I make my self-written 1.exe run automatically after receiving the character 1 sent over the serial port?
What if there are also 2.exe and 3.exe? If I use TC to write a serial port program, that would be another EXE file too, right??? |
|
| Floor2 medalas | Posted 2004-02-19 00:00 |
| 初级用户 Posts 21 Credits 189 | |
|
Under DOS, how can I make my self-written 1.exe run automatically after receiving the character 1 sent over the serial port?
What if there are also 2.exe and 3.exe? If I use TC to write a serial port program, that would be another EXE file too, right??? What I want is to use the host machine's serial port to control the lower machine. After the lower machine receives a character, it executes the corresponding self-written executable file. After booting up, the lower machine should not need any manual control and should stay at the DOS prompt. The serial port program would basically have to do the equivalent of typing 1.exe and pressing Enter at the DOS prompt, but then this serial port program is itself an independent program. If I use a batch file to go to this serial port program COM.EXE, would that work? Could some expert try writing a program??? |
|
| Floor3 dos_fan | Posted 2004-02-26 00:00 |
| 初级用户 Posts 10 Credits 152 | |
|
You just need to write a serial port receiving program. After it receives the filename sent by the host machine, it can go to the corresponding directory and execute the program.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |