Computing.Net > Forums > Disk Operating System > Setting path in DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Setting path in DOS

Reply to Message Icon

Name: Howdy
Date: May 30, 2000 at 11:08:44 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Howdy
Date: May 30, 2000 at 11:29:02 Pacific
Reply:

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.


0

Response Number 2
Name: Jon Fox
Date: May 30, 2000 at 12:07:17 Pacific
Reply:

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.


0

Response Number 3
Name: Howdy
Date: May 30, 2000 at 13:54:58 Pacific
Reply:

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:MSCD001

REM [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.


0

Response Number 4
Name: Rigel
Date: May 31, 2000 at 02:10:32 Pacific
Reply:


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

or, no equal sign but no "set". e.g.,
path blah-blah


0

Response Number 5
Name: browser
Date: May 31, 2000 at 05:47:32 Pacific
Reply:

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



0

Related Posts

See More



Response Number 6
Name: Howdy
Date: May 31, 2000 at 08:27:16 Pacific
Reply:

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... ;)


0

Response Number 7
Name: Jon Fox
Date: May 31, 2000 at 12:44:10 Pacific
Reply:

At the end add the line
"path %path%;[arj prog path]".


0

Response Number 8
Name: ramesh
Date: September 23, 2000 at 02:38:14 Pacific
Reply:

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


0

Response Number 9
Name: mercedes
Date: January 16, 2001 at 16:37:18 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

LL3.EXE unformat



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Setting path in DOS

How to set web proxy in DOS www.computing.net/answers/dos/how-to-set-web-proxy-in-dos/3783.html

map to another hard drive in DOS www.computing.net/answers/dos/map-to-another-hard-drive-in-dos/10093.html

Running my game in DOS! www.computing.net/answers/dos/running-my-game-in-dos/381.html