Solved

DOS /Windows98

Posted on 2000-03-16
7
376 Views
Last Modified: 2013-12-29
When running a DOS session in Windows98 the settings for the port are not saved, i.e. the port is set as....
mode com1: 9600 n 8 1 > nul in the config line but if the session is run and then closed and run again the sys must be restarted, any ideas why or have a more permanent soloution than setting up a batch file
0
Comment
Question by:dikus
7 Comments
 
LVL 7

Expert Comment

by:jjeff1
ID: 2624468
If you put that mode com1: 9600 n 8 1 > nul in your autoexec.bat it should be that way for every DOS session.

You might also look in device manager to see if the port settings have been changed. 9600N81 is the default settings for a serial port.
0
 

Author Comment

by:dikus
ID: 2624511
Sorry Jeff,

Thats the strange thing, its in the Autoexec line already but will make no difference, it doesnt seem to stay resident.
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2624875
It's possible the default settings for the COM port in Windows are overriding the ones you set in your AUTOEXEC.BAT. Try right-clicking My Computer and selecting Properties, then click Device Manager in the dialog box and look for the COM1 device. Right-click this device and modify its properties to what you need, then try your application again.
0
Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

 
LVL 15

Expert Comment

by:hewittg
ID: 2624946
Dikus,
Have you added this into your msdos.pif file.
It all depends on how you are going into the dos mode.  Look at all your dos reference pif files and you will see where which one it needs to be added to.


Hope it helps.

Glenn
0
 
LVL 1

Expert Comment

by:revolws
ID: 2625260
Dikus...

Wasn't sure so hadda go check to see if Win98 will use the file 'dosstart.bat'.  It does.  That file is automatically run when you exit to msdos and will execute any commands you need or require as long as they can be used in the autoexec.bat file.  The only commands you cannot use are the 'set' commands.  I copied this from the microsoft knowledge base.  Create the file with the commands you want and it should resolve your problem...  Good Luck....
When you restart your computer in MS-DOS mode, any commands in the Dosstart.bat file are carried out. You can place commands you want to be run when you restart your computer in MS-DOS mode in the Dosstart.bat file. To do so, follow these steps:


Start Notepad.


Type the commands you want in the Dosstart.bat file in the empty Notepad file.


On the File menu, click Save As.


Save the file as Dosstart.bat in the Windows folder.


Quit Notepad.


When you restart your computer using the "Restart the computer in MS-DOS mode" or "Restart in MS-DOS mode" option, the "Exit to Dos" file is processed. If you want to use a different Config.sys or Autoexec.bat file for MS-DOS mode, modify the "Exit to Dos" file. To modify the "Exit to Dos" file, follow these steps:

Use the right mouse button to click the "Exit to Dos" file in the Windows folder, and then click Properties on the menu that appears.

NOTE: If the "Exit to Dos" file does not exist in the Windows folder, create it with the following steps, and then try step 1 again:


Click the Start button, and then click Shut Down.


In the Shut Down Windows dialog box, click "Restart the computer in MS-DOS mode", and then click Yes.


At the command prompt, type exit, and then press ENTER.


On the Program tab, click Advanced.


Click the Specify A New MS-DOS Configuration option.


Enter the appropriate lines for the Config.sys file for MS-DOS mode in the Config.sys For MS-DOS Mode box.


Enter the appropriate lines for the Autoexec.bat file for MS-DOS mode in the Autoexec.bat For MS-DOS Mode box.


Click OK.


Click OK.


If you specify a new MS-DOS mode configuration, the specified Config.sys and Autoexec.bat files are processed and the Dosstart.bat file is not processed. If you use the current MS-DOS configuration, the current Config.sys and Autoexec.bat files are processed, and then the commands in the Dosstart.bat file are run.



0
 
LVL 12

Expert Comment

by:Housenet
ID: 2626206
-create a file called c:\windows\setcom.bat. In the file put mode com1 etc... set the properties to "close on exit".
-Create a shortcut to c:\windows\command.com. In the properties of the shortcut under the Program tab there is a section "Batch File:". enter setcom.bat.
-If you use this new shortcut to dos, it will set the com1 the way you want in the session.
0
 
LVL 1

Accepted Solution

by:
m_war earned 200 total points
ID: 2641991
run MSD, or try to indicate th PORT of the modem, go to dos , write :
echo ATA>com1
then try on the other com's (4 com's).
if you can run MSD, try to see if you have CTS/RTS on NO, if you do, you have
to change the jumpers/slot try to use your modem's manual in order to do so...
Good Luck,
Yaniv.
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now