Using Com port with a DOS program under win 2000 Pro

G

Guest

L.S.

Is there a possibility to let a DOS programm use the COM1 port under Windows
2000 the PC is running on windows 2000 pro and connected to a Windows 2003
Server.
The program is old and not supported for windows 2000 and is used to program
an LED advertizing Board via the COM poort of the PC!

I know about the command line to get a shared printer working for the LPT
port in a windows network!

Can you use a command for the COM also????

Greatings Marcel Blankensteijn Katwijk Netherlands
 
B

Bob I

It depends entirely on the method the "DOS program" accesses the COM
port. If it attempts direct access, it will fail, if it acceses it thru
the operating system you have a good chance. Please see "MODE /?" at the
command prompt.
 
G

Guest

Its a 16 BIT DOS program that runs fine under DOS but i want it to run under
windows 2000 i think it directly , from the programm, access the COM1 port.

"Bob I" schreef:
 
D

Dave Patrick

Then it will fail since direct access isn't allowed anymore.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Its a 16 BIT DOS program that runs fine under DOS but i want it to run
under
| windows 2000 i think it directly , from the programm, access the COM1
port.
 
T

Thomas Lutz

It is possible to use old DOS programs that communicate directly with
a serial port on a Windows 2000 or XP system. You just need to
configure the DOS session correctly.

Try the following:

Find your DOS program in the Windows Explorer and right click on it
and select "Create Shortcut" from the context menu that appears.

Right click on the new shortcut and select "Properties" from the
context menu.
Select the "Program" tab and click the "Advanced" button. In the
window that appears, check the option "Compatible timer hardware
emulation" and click OK.
Select the "Misc" tab and set the "Idle Sensitivity" to the lowest
setting and clear the "Always Suspend" option in the "Background"
section.

Close the window completely and then try running the shortcut and
testing to see if you can receive data correctly in your application
from the device that you have plugged into the COM port.

If the above settings do not work, open the Properties window for the
shortcut and select the "Compatibility" tab and set the Compatibility
Mode to the Windows 98 option.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top