I am installing Windows 98 on to a computer which lacks an OS. I am using FreeDOS to do so. However, I need to edit the "config.sys" file in order to load the required files, and for whatever reason, the "edit" command fails, stating that it is not a command. Also, I can not find the config file in Windows Explorer, so I can not modify them with my working computer.
Asked
Active
Viewed 3,274 times
0
1 Answers
0
You are getting "Bad command or filename" or similar when trying to run EDIT because EDIT.COM or EDIT.EXE is not in the current directory or anywhere in the path. Issue a plain PATH command to see what directories are in the current path to confirm. You may need to look around the directories on the FreeDOS floppy and see where it is, if it's included.
Failing that, you can do the following, though it will be inconvenient:
- Enter
TYPE CONFIG.SYSfrom the place CONFIG.SYS is in. This will display the current contents of CONFIG.SYS. - Now enter
COPY CON CONFIG.TMP. The cursor will jump to the next line and you'll get no prompt. - What you type will be entered into the
CONFIG.TMPfile. You can thenCOPY CONFIG.TMP CONFIG.SYSonce you makeCONFIG.TMPthe way you need it. You'll need to type out everything from start to finish that should be in the final CONFIG.SYS file, with any changes or additions you want to make made as you type. - When done, press ENTER to get a blank line, then CTRL-Z. You'll get a message the file is copied. Verify the changes are there with a second
TYPE CONFIG.SYScommand. - The
COPY CON CONFIG.TMPwill replaceCONFIG.TMPwith everything you type, soCOPY CONFIG.SYS CONFIG.TMPwon't help you.
Hopefully your CONFIG.SYS fits on one screen if you have to go this route.
LawrenceC
- 73,957
config.sysfile using Windows Explorer because it has the Hidden/System attributes set. You need to turn on the option to show both hidden and system files in order to see it. – and31415 Sep 04 '14 at 08:00dir *.sys /aorattrib *.sysfrom a command prompt to ensure the file is there. – and31415 Sep 04 '14 at 14:13