Solved

Path and Classpath

Posted on 1998-05-05
5
174 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to remove unwanted words? 34 49
How to set only one user access in one machine in windows 3 36
Pay to 支付宝 12 56
Problem to file 5 29
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

860 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