Mail Archives: djgpp/2000/12/27/05:36:43
On Sun, 24 Dec 2000 15:18:09 +0100, "Peter Remmers"
<Peter DOT Remmers AT t-online DOT de> wrote in article
<9250eb$a84$00$1 AT news DOT t-online DOT com>:
>So the port stays blocked for all other DOS AND Windows applications
>for the life of the DOS box that uses/used the port.
...
>In the case of the DOS session "command.com" is the program that uses the
>port. When command.com exits the DOS session ends and the port is deallocated.
In that case, would a DOS command along the lines of ...
command.com /C myprog.exe
or perhaps
%COMSPEC% /C myprog.exe
work? This runs up a new command.com, that session of command.com runs
myprog.exe and then exits, hopefully freeing up the COM port) get
around the problem? It might need an extra .bat file to contain this
info, but if it works it looks like a simple workaround to the
limitations of DOS.
Of course, the port is still locked for the lifetime of myprog.exe,
but this may be better than for the lifetime of the DOS box.
HTH,
Greg
--
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
- Raw text -