Syntax of a system path in 95
Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Syntax of a system path in 95

  1. #1
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344

    Syntax of a system path in 95

    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.
    Something to do while waiting for long downloads. Atari Adventure

  2. #2
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    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

  3. #3
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    Quote Originally Posted by SpywareDr
    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.

    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.
    Something to do while waiting for long downloads. Atari Adventure

  4. #4
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    What is the complete drive:\path for the tool you're trying to use?

  5. #5
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    c:\BJL\BJL_Uploader
    Something to do while waiting for long downloads. Atari Adventure

  6. #6
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    To reset the PATH environment variable temporarily, at the DOS prompt type:
    set path=%path%;c:\bjl\bjl_uploader
    To 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).

  7. #7
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    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.
    Something to do while waiting for long downloads. Atari Adventure

  8. #8
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    Recommend:
    path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader

  9. #9
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    Thank you.
    Something to do while waiting for long downloads. Atari Adventure

  10. #10
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806

  11. #11
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    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?
    Something to do while waiting for long downloads. Atari Adventure

  12. #12
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    The line:
    set path=%path%;c:\jaguar\bin
    simply appends:
    ;c:\jaguar\bin
    to the end of your current PATH. So, if your current PATH was say:
    c:\windows;c:\windows\system;c:\bjl\bjl_uploader
    after doing a:
    set path=%path%;c:\jaguar\bin
    your new PATH would be:
    c:\windows;c:\windows\system;c:\bjl\bjl_uploader;c:\jaguar\bin
    Note: You can type "path" (sans the quotes) to view your current path.

    The lines:
    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
    setup five other environment variables, (unrelated to the PATH environment variable). Presumably these variables are needed by the program you're installing.

    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:\temp
    set temp=c:\temp
    set tmp=c:\temp
    The 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.

  13. #13
    Join Date
    Jun 2003
    Location
    Hollywood, CA
    Posts
    218
    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

  14. #14
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    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.
    Something to do while waiting for long downloads. Atari Adventure

  15. #15
    Join Date
    Oct 2003
    Location
    Beaverton, Oregon
    Posts
    1,344
    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.
    Last edited by A31Chris; April 26th, 2006 at 03:41 PM.
    Something to do while waiting for long downloads. Atari Adventure

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •