Mail Archives: djgpp/2000/12/27/07:17:52
On Wed, 27 Dec 2000, Greg Thomas wrote:
> >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?
No, I don't think so. You need to say "start myprog.exe", to make
myprog.exe run in a different DOS box. Then, when myprog.exe exits, its
DOS box will close, and the COM port should be freed.
- Raw text -