Computing.Net > Forums > General Hardware > Ms Dos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Ms Dos

Reply to Message Icon

Name: Peter1
Date: July 25, 2009 at 03:10:17 Pacific
OS: Windows 98 SE
CPU/Ram: neither
Subcategory: BIOS
Comment:

Ms Dos will not respond to the edit command.
However it will respond to other commands.
At the c:/> I type edit config.sys and it responds bad command or file name.
It did work prior to editing config.sys files and autoexec.bat files.
I made a mistake of not putting rem in front of some lines that were corrupted, instead i removed those lines.
does this affect how ms dos opperates?

Any help would be appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: jam
Date: July 25, 2009 at 06:59:00 Pacific
Reply:

You should be asking in the DOS or Win98 forum.

Placing REM in front of the line prevents it from loading. Deleting the line obviosly prevents it from loading too. The advantage to using REM is that you don't lose the line & can re-enable it at a later date (if necessary) simply by removing the REM.

If you're asking about Win98, there are several ways to edit. Try going to Start > Run, type in SYSEDIT, then click OK.


0

Response Number 2
Name: DAVEINCAPS
Date: July 25, 2009 at 12:09:59 Pacific
Reply:

Yeah, I'm not sure if you're asking a pure dos queston or a 98 question. In 98, EDIT is located in c:\windows\command. On a dos-only system, likely 6.22 and less, it's going to be in c:\dos.

When you get a 'bad command or file name' it means the command is not in the current directory nor in the path. The path statement is located in autoexec.bat. 98 has a default dos path of c:\windows;c:\windows\command so EDIT should run even without a path statement. However if you messed with that line in autoexec.bat you may have no path now.

If you want to run a command not in the path, or if there is no path, you need to preface the command with the path to the file. So from a 98 c:\> prompt you'd type c:\windows\command\edit config.sys and enter. From a dos-only install you'd type c:\dos\edit config.sys and enter. Editing autoexec.bat would work the same way.


0

Response Number 3
Name: Peter1
Date: July 25, 2009 at 18:50:55 Pacific
Reply:

Thanks.
We Have a old custom build computer with 98 on it.
But when you start it up it says flopy disk(s) fail F1 to continue.
You press f1 and it goes on to have some options they are
Normal, Boot log, step by step confirmation, safe mode, command prompt, And command prompt safe mode.
I have tried to boot normally but it doesn't work saying that it found problems and has the option of restarting only.
The same thing happens with safe mode.
When you do command prompt it does a scan on config.sys saying that files are missing or corrupt then comes to a stop at c:\>.
We tried many things to get it working like bootdisks and bootcds but they dont work saying they cant find some files.
This is why i went to edit config.sys and autoexec.bat trying to find the missing files this is what i found in autoexec.bat
C:\PROGRA~1\TRENDP~1\PCSCAN.exe C:\ C:\ WINDOWS\COMMAND\ /NS /WIN95 (IS THE FIRST LINE).
SET PATH=C:\CBTALK;C:\DOS;C:\PCUNIX. (THIS IS SECOND LINE).
SET TEMP=C:\TMP (IS THE LAST LINE).

IN CONFIG.SYS THERE IS
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.exe NOEMS
FILES=40
BUFFERS=15,0
FCBS=4,0
STACKS=9,256
DEVICEHIGH=C:\DOS\ANSI.SYS

DEVICEHIGH=C:\DOS\RAMDRIVE.SYS 16 /E

I renamed these files how this web site told me http://www.computerhope.com/ac.htm so as you can see i cant start windows only get into dos can annyone tell me what autoexec.bat and config.sys should look like on windows 98.

Thanks


0

Response Number 4
Name: DAVEINCAPS
Date: July 25, 2009 at 19:28:42 Pacific
Reply:

When it get to the c:\> prompt type DIR/P and enter. That will scroll through the contents on the root (C:\) directory. Is there a dos directory? Is there a windows directory?

You're loading most of the stuff out of the dos directory. Even if it's there you're probably loading files that are the wrong version. If you're running 98 you need to use 98 files.

You can run windows with no config.sys and autoexec.bat so that's always an option. But it should be easy to fix them if you post back the above info.

Also, even if config.sys and autoexec.bat are screwed up that shouldn't stop windows from loading so the main problem is probably elsewhere.


0

Response Number 5
Name: Peter1
Date: July 25, 2009 at 19:43:42 Pacific
Reply:

Hi.
There is windows in the directory but no dos.
what now.


0

Related Posts

See More



Response Number 6
Name: jam
Date: July 25, 2009 at 20:02:11 Pacific
Reply:

"But when you start it up it says flopy disk(s) fail F1 to continue"

Do you even have a floppy drive installed in your system? Does it light up when you attempt to boot? Does the light stay on? If so, the data cable is connected incorrectly. If you don't have one, disable it in the BIOS.

BTW, Win98 doesn't even need autoexec.bat or config.sys. IO.sys basically replaced them.

"The 32-bit IO.SYS is really a combination of DOS’s IO.SYS, MSDOS.SYS, CONFIG.SYS, and AUTOEXEC.BAT files. The new IO.SYS contains all the instructions the operating system needs to initially interact with your hardware. IO.SYS also loads some default CONFIG.SYS and AUTOEXEC.BAT commands, and it controls much of the remaining boot sequence.

Windows 95 can run without a CONFIG.SYS or an AUTOEXEC.BAT file. That’s because these files are built into IO.SYS, which automatically executes a set batch of commands."

Try renaming config.sys & autoexec.bat to config.old & autoexec.old & see what happens. If that doesn't work, try running scanreg /restore from the DOS prompt & choose a date before you began having problems


0

Response Number 7
Name: DAVEINCAPS
Date: July 25, 2009 at 20:31:26 Pacific
Reply:

Change config.sys to this:

DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.exe
DOS=HIGH,UMB
DEVICEHIGH=C:\WINDOWS\COMMAND\ANSI.SYS

and autoexec.bat to this:

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\CBTALK;C:\PCUNIX.

The first line in your current autoexec.bat is a virus scan. You can keep that line if you want. I wasn't sure of its exact syntax.

Edit them from c:\> prompt as I mentioned above c:\windows\command\edit config.sys and c:\windows\command\edit autoexec.bat

And again, the real problem is likely elsewhere. These changes will stop the config.sys and autoexec.bat error messages but aren't likely to get it into windows. So make the changes and then post back a description of any further problems.


0

Response Number 8
Name: Peter1
Date: July 25, 2009 at 20:34:14 Pacific
Reply:

Hi
The floppy drive is fine the light does not stay on.
This computer was given to us by a friend so we havent even had it running since we got it.
We tried renaming the config.sys and autoexec.bat files but it still wont run.
I am not going to run a scanreg restore yet but will if all else fails i will.
thanks


0

Response Number 9
Name: Peter1
Date: July 25, 2009 at 20:50:04 Pacific
Reply:

Hi
I boot up come to command prompt and hit enter then it says warning: windows has detected a registry/configuration error.
choose, command prompt only and run SCANREG.
when you run SCANREG it says windows has found an error in your system files and has restored a recent backup of the files to fix the problem.
Then it says press enter to restart your computer but it restarts with the same problem.
PS it doesent like the path we typed in autoexec.bat.
thanks.


0

Response Number 10
Name: DAVEINCAPS
Date: July 25, 2009 at 21:17:32 Pacific
Reply:

Possibly one of the directories in the path statement isn't there.

If this is a computer that's new to you why not just do a fresh installation and not bother trying to fix the problem? Do you have a 98 installation cd?


0

Response Number 11
Name: Peter1
Date: July 25, 2009 at 21:44:25 Pacific
Reply:

Yes.
I have spent hours on this and we do have a 98 installation disk
i know how to wipe the disk so i will and reinstall 98.
Thank you very much for your time and effort in trying to help us fix it we really appreciate it.
Thank you again.

Regards Peter1


0

Response Number 12
Name: DAVEINCAPS
Date: July 25, 2009 at 22:39:51 Pacific
Reply:

You're welcome. Post back if you have any other problems with it.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to General Hardware Forum Home


Sponsored links

Ads by Google


Results for: Ms Dos

Fault Outside of MS DOS Extender www.computing.net/answers/hardware/fault-outside-of-ms-dos-extender/45538.html

need to create ms-dos part???? www.computing.net/answers/hardware/need-to-create-msdos-part/24793.html

ms dos prompt www.computing.net/answers/hardware/ms-dos-prompt/32281.html