Solved

Path and Classpath

Posted on 1998-05-05
5
173 Views
Last Modified: 2013-12-16
I want to add a line to my path staement in the autoexec.bat file. Every time I modify it[autoexec.bat] nothing happens. I change it[autoexec.bat]-then save, then at the  DOS prompt I enter C:\windows<PATH and the path never changes, even after rebooting, several times.
Also is there a standard PATH statement, I have seen many variations.
Same question about Classpath,[any standard form ?]
0
Comment
Question by:admiral
5 Comments
 
LVL 14

Expert Comment

by:smeebud
ID: 1755590
I'm assumming your path statement looks something like this;
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;............

PATH= and no spaces??

Bud
0
 

Author Comment

by:admiral
ID: 1755591
The question as interpreted by smeebud is correct
0
 
LVL 12

Expert Comment

by:alandc
ID: 1755592
In your config.sys you can edit the path statement directly or add to it like this
path = %path%; <insert-more-path-here>

or in your autoexec.bat you can use a SET statement to update your path
SET PATH = C:\etcetc

you can also use %path% in a SET statement like this
SET PATH = C:\newpath; %path%; c:\morepath

NOTE: It is possible to make your path too long. I think the limit is about 80 or 128 characters.  You can aleviate this by moving longer path items  (like C:\windows\mouse\logitech) closer to the root directory (c:\)  (In our example c:\mouse would be a good place to relocate that directory saving over 15 characters.)

Classpath may also be change in the CONFIG.SYS and/or AutoExec.bat in the same manner.

CLASSPATH =  ....  for the config.sys
SET CLASSPATH =  ....  for the autoexec.bat

0
 
LVL 14

Expert Comment

by:smeebud
ID: 1755593
Pleas epost you autoexec and config.

Bud
0
 
LVL 1

Accepted Solution

by:
dreamPeace earned 100 total points
ID: 1755594

    Unless the guys up there are right, you might have a problem with autoexec.
   What u need to do to know if they are or no, run Windows 95 in Confirmation mode,
   so it asks you for each command do everything 'yes' until u get to the PATH statement.
    Take a look if it's there, if its'nt, the autoexec.bat file is not the file that Windows loads.
   sometimes there are variations like atoexec.win and autoexec.dos, but ulually they are
   old backups of the original. Yet, sometimes, Windows chooses to load them...
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question