Okay, here's my problem.
Somehow, my autoexec.bat file decided to write its will yesterday, and I've spent all day trying to recover what my batch file did. Apparently, a virus (I think) had overwritten the extension on my batch file and did something so that I could not delete any file with that extension. A friend of mine managed to purge that file as well as run a dos-based virus checker to nail the culprit virus.
Now this leaves me without a batch file, and I basically tried to reassemble my batch file from memory. Here I have a problem:
My work at the computer lab requires me to use many paths to gain access to certain directories without the need to access them separately. I had the following paths:
path c:\dos
path c:\windows
path c:\[insert directory here]
path c:\[insert another directory here]
and so on.
Unfortunately, my Windows will no longer load up. A classmate suggests moving my Windows path down to the bottom. I did so, and it did work, but now I cannot access all the other paths that I need to access.
Anyone have any suggestions?
SET PATH=C:\WINDOWS;C:\DOS;C:\PLEH;D:\
You're effectively telling it to make one directory the single path, then to replace it with another directory, then yet another. That's why only the last one works. You have to put them all in using a single command.
All as is my understanding. I haven't really had to deal with all this in quite some time.
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\CDROM;C:\BRCD\COMMAND;C:\BRCD\BIN
I'm running Windows 98 Second Edition.
If worse comes to worse, you might wanna see if you have old version of the autoexec file still on your hard drive that you could restore. I have two: autoexec.001 and autoexec.002. If you've installed something that has made alterations to your autoexec.bat file, you might to see if you still have the older version. It'll at least get Windows up and running fully again.
And, as is always the last resort, you could try backing up your files and then re-installing Windows. Certainly not a fun prospect (especially if all you have available to back up your stuff is the floppy disk drive).
Siegfried: I just tried that. For some reason I get a "Too many Parameters" on my screen.
quote:
Siegfried: I just tried that. For some reason I get a "Too many Parameters" on my screen.
That's because the line has to end with a semi-colon as well, i.e.:
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\CDROM;C:\BRCD\COMMAND;C:\BRCD\BIN;
Alternatively you can simply specify PATH=C:\;%PATH% - this will recurse all subdirectories beneath the root.
Infinity: Your could be empty if you're running Windows ME or (I think) 2000.
quote:
Originally posted by PsyLiam:
Infinity: Your could be empty if you're running Windows ME or (I think) 2000.