What is the syntax of a system path in 95? I need to create one in the autoexec.bat I think it is.
I can't find the google search result I found last night oddly.
Printable View
What is the syntax of a system path in 95? I need to create one in the autoexec.bat I think it is.
I can't find the google search result I found last night oddly.
If you mean setting the default PATH environment variable in a Windows 95 C:\AUTOEXEC.BAT, I believe it was:path=c:\windows;c:\windows\system
Well I am not sure exactly. From what I remember from my Google search result that I can't seem to recreate it used the % sign a couple times.Quote:
Originally Posted by SpywareDr
I am using a DOS tool from a dos command prompt. I need for the system to be able to call the dos tool from whatever directory I'm in in DOS. :)
What is the complete drive:\path for the tool you're trying to use?
c:\BJL\BJL_Uploader
To reset the PATH environment variable temporarily, at the DOS prompt type:set path=%path%;c:\bjl\bjl_uploaderTo reset it permanently, edit the C:\AUTOEXEC.BAT and add the following to the end of the existing PATH statement line:;c:\bjl\bjl_uploader(Then reboot for the change to take effect).
OK I just did a path=c:\bjl\bjl_uploader because my autoexec.bat didnt seem to have any kind of path statement at all in it.
Recommend:path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader
Thank you. :)
You're welcome. :)
Alright, I got something related to it. I downloaded a related archive. Following its readme instruction I put it in the root directory of my HD. It also instructs me to set these setpaths in autoexec.bat:
set PATH=%PATH%;C:\JAGUAR\BIN
set RDBRC=C:\JAGUAR\BIN\RDB.RC
set DBPATH=C:\JAGUAR\BIN
set ALNPATH=C:\JAGUAR\BIN
set MACPATH=C:\JAGUAR\INCLUDE
set GCC_EXEC_PREFIX=C:/JAGUAR/BIN
set TEMP=C:
Was mildly curious about why it was having me modify the permanent setpath with the %. It's ok to do it this way I'm assuming then. I'm also assuming I can put them all on the same line seperated by the semicolon as well?
The line:set path=%path%;c:\jaguar\binsimply appends:;c:\jaguar\binto the end of your current PATH. So, if your current PATH was say:c:\windows;c:\windows\system;c:\bjl\bjl_uploaderafter doing a:set path=%path%;c:\jaguar\binyour new PATH would be:c:\windows;c:\windows\system;c:\bjl\bjl_uploader;c:\jaguar\binNote: You can type "path" (sans the quotes) to view your current path.
The lines:set rdbrc=c:\jaguar\bin\rdb.rcsetup five other environment variables, (unrelated to the PATH environment variable). Presumably these variables are needed by the program you're installing.
set dbpath=c:\jaguar\bin
set alnpath=c:\jaguar\bin
set macpath=c:\jaguar\include
set gcc_exec_prefix=c:/jaguar/bin
Note: You can view what's in the environment by typing "set" (sans the quotes). If there are a number of variables and they scroll off the top of the screen, use the command "set|more" (sans the quotes) instead.
The last line:set temp=c:is not a good idea. For one it's missing a directory (even if it was just "\" [the 'root' directory]). Two, most people don't want a whole slew of temporary files cluttering up the root directory of drive C:. Better to leave it alone or add the following three lines to your C:\AUTOEXEC.BAT file:md c:\tempThe first line makes sure you have a "\temp" directory on drive C: and the second two lines simply point the "temp" and "tmp" environment variables to it.
set temp=c:\temp
set tmp=c:\temp
Hi All:
Win95 appends whatever you have listed in your AUTOEXEC.BAT to
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
when it boots.
If you have (only) this line in your AUTOEXEC.BAT:
PATH=C:\jaguar\bin
after you've booted up, you will find the path has become:
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jaguar\bin
automatically.
Jerry
I'll leave out the temp=c: part. I dont like temp files cluttering up my root drive either. Why in the hell did they put that in there come to think of it? That's stupid.
You guys have been most helpful. :)
I've downloaded the djgpp C/C++ development package and it wants me to set these system paths in 95:
set PATH=C:\DJGPP\BIN;%PATH%
set DJGPP=C:\DJGPP\DJGPP.ENV
All the sudden everything wants me to set system paths which is something I've never done before. I hope nothing conflicts.
Wait, the instructions say instead of changing my global enviroment I can add this to the djgpp folder:
@echo off
set PATH=c:\djgpp\bin;%PATH%
set DJGPP=c:\djgpp\djgpp.env
chdir c:\djgpp\mystuff (or any other directory)
command
(you can replace that last line with any other shell you'd like)
Not sure what it means by the chdir c:\djgpp\mystuff (or any other directory)
command
(you can replace that last line with any other shell you'd like)
I would like to do this .bat in the djgpp directory instead of changing my global enviroment. However that last part has me scratching my head. Any clarity would be appreciated. :)