The reason that you are getting the error "bad command or filename" when you type edit is because you are not doing so from within the windows\command folder or not including the entire path to the file in your command. As for booting your computerthere are several ways to achieve this.
1) Hold down the CTRL button during bootup. This should bring you to the windows start menu. There you can select how you wish to start your computer. I suggest you select "step by step" and say "N" whenprompted to run your Config.Sys & Autoexec.bat files. (Win98 does not need them to start anyway.)
2) Place your Win98 Setup Boot disc in your floppy drive and boot to windows from there.
Once within windows I suggest that you go to Start > Run > msconfig
At this panel look for and deselect the items "Process Config.sys file" and "Process Autoexec.bat file" apply these changes and reboot the computer making sure you do not have anything in your floppy drive at this time. You should now be able to enter Windows with no error or problems. Good luck.