Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Yesterday I attempted installing ARJ (file archiver) and instructions required me to set the path as following: SET PATH=C:\WINDOWS;...;C:\UTILIT~1\ARJ (the directory that I myself chose). So I added this very line to my AUTOEXEC.BAT. Well, the program still doesn't work, and, on top of that, my DOS commands such as edit and help stopped working as they used to. Instead of simply typing edit I now have to type windows\command\edit... So I believe that I somehow reset my usual DOS path and would like to find out how and where to set it back. I removed the suspect line from AUTOEXEC.BAT already, but things are not back to normal as of yet... :( Any help would be greatly appreciated. Thanks.

And, while we are at it, does anyone remember which file(s) in the root directory could be removed or renamed and the new one(s) with default settings will be created on reboot. Is one of those AUTOEXEC.BAT? Thanks a lot.

Add the line
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
to your autoexec.bat file.
The path sets which directories DOS will search through to find for the programme you are attempting to run.
You can change the path at any time by typing path [directory] at the DOS prompt.
To add more than one directory you seperate them with semicolons.
"path %path%;c:\new"
will add c:\new to the existing list of directories.

Thanks, Jon. Do I need to reboot or something? Tried your suggestion, doesn't seem to be working so far... This is how my AUTOEXEC.BAT looks like now:
SET BLASTER=A220 I5 D3 T4
C:\WINDOWS\asp4dos.com
C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.exe C:\
@IF ERRORLEVEL 1 PAUSE
@IF ERRORLEVEL 1 PAUSE
@IF ERRORLEVEL 1 PAUSE
@IF ERRORLEVEL 1 PAUSE
@PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK;%PATH%;C:\COMPS\DJGPP\BIN
REM [Header]REM [CD-ROM Drive]
REM C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001REM [Miscellaneous]
SET DJGPP=C:\COMPS\DJGPP\DJGPP.ENV
SET PATH C:\WINDOWS;C:\WINDOWS\COMMAND
Never mind that DJGPP thing, ain't using it yet. ;) Also, notice there is a very similar line in the file already...And HELP isn't working even when I type the full path, says HELP.HLP couldn't be found, although the file is clearly there.

Put an equal sign "=" after path. e.g.,
set path=blah-blahor, no equal sign but no "set". e.g.,
path blah-blah

You have TWO path statements. The second one re-sets the first. The last path statement used will be the active one.

Thanks, guys! My mistake, Jon. Yes, Rigel, both of your methods work! And yes, browser, I removed the last statement alltogether and things are back to normal again. Still can't figure out how to make that ARJ archiver work. Not that I need it that badly... ;)

set the path environment variable from the command prompt itself by just typing the following.
c:\>
this will be the promt.
now type the following.c:\>path=e:\tc3\tc;%path%
this is telling to search for the directory mentioned like e: first then dir tc3 then dir tc and theri u find the typed .exe file.
got it.so after this type tc( which is the exe which
u weant to execute from anywhere). see what happens. enjoy.ramesh

Could you tell me what %path% does. I know it is some kind of environment variable, but I don't know what it does. Thanks.

![]() |
LL3.EXE
|
unformat
|

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