Results 1 to 10 of 10
  1. #1
    New Lounger
    Join Date
    May 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where Do I edit the path For DOS Prompt In 98

    I want to add some more directories to the path when I open a DOS prompt. I have a bin of some of DOS programs I like eg vi text editor but cannot for the life of me figure out how to add the path to the DOS path.
    Is there no some simple place I can add it to make it work
    thanks

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    Are you saying you want to open a DOS window in a specific folder?

  3. #3
    New Lounger
    Join Date
    May 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    Well actually this would be a great thing too, I hate the fact that the prompt always opens in root or where ever it does so I have to type my way to were I want to go .... However, my problem is that i want to append a new directory to the path. Right now the path is:

    PATH=C:WINDOWS;C:WINDOWSCOMMAND
    How can I make it for example;
    PATH=C:WINDOWS;C:WINDOWSCOMMAND;D:BIN
    Am I left to adding it to config.sys like the ooooooold days or putting in a .pif again like the semi ooold days. Windows NT has an interface in system, as I recall. What is the way to do it in Win98.

    Thanks.

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    I'm afraid I don't know enough about W98 to help on your main question, but to open a DOS window in a specific folder:
    Create a new shortcut to command.com
    Edit the shortcut to make the working directory where you want it - e.g. c:bin
    Attached Images Attached Images
    • File Type: gif x.gif (4.1 KB, 0 views)

  5. #5
    New Lounger
    Join Date
    May 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    mmm I see , Great Thanks. Maybe someone can help me with the other question on the PATH.

  6. #6
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    Just modify your AUTOEXEC.BAT and you'll be all set. To append to the current path (if nothing is there already), use this:

    PATH=%PATH%;var1,var2

    Hope that's what you were looking for!
    -Mark

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    I use the following - one of a collection of Path-related batch files.

    Typical use:

    AddPath d:applPcfiledb

    <pre>REM ADDPATH.BAT

    if "%d%"=="" set d=off
    @echo %d%

    IF "%1"=="?" goto 90help
    IF "%1"=="/?" goto 90help

    REM Sunday, May 29, 1994
    if "%1"=="" call addpathn.bat
    if "%1"=="" goto 99exit

    :10loop
    IF NOT EXIST %1NUL IF NOT EXIST %1NUL goto 95notexist
    PATH "%1";"%path%"
    shift
    if not "%1"=="" goto 10loop
    GOTO 99exit

    :90help
    ECHO %0 - use as PATH path-to-be-added
    GOTO 99exit

    :95NotExist
    ECHO %0 - I can not find the directory "%1"
    GOTO 99exit

    :99exit
    ECHO %0 - current path is now %path%
    REM End of ADDPATH.BAT
    </pre>


  8. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    Good catch Merc!

    I believe you can add a second line if it exceeds 120 chars - such as:

    PATH=blah;blah;blah..............
    PATH=%PATH%;blah;blah;blah..............

    And of course, I stand to be corrected.

    Another thing to consider is that if you have a lot in the search path, you can slow things down a bit as the OS tries to locate things in multiple locations. Given today's hardware, probably not noticeably though.
    -Mark

  9. #9
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    England
    Posts
    1,306
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    If you are modifying the Path parameters in Autoexec.bat, there is a small caveat : the line should not be more than 120 characters long.

    Rgds

  10. #10
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where Do I edit the path For DOS Prompt In 98

    (after nth call to "Addpath c:temp")

    <font color=448800>
    C:Windows>addpath c:temp

    C:Windows>REM ADDPATH.BAT

    C:Windows>
    C:Windows>if "off"=="" set d=off
    c:temp - current path is now C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:
    TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:T EMP;C:TEMP;C:TEMP;C:
    TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:T EMP;C:TEMP;C:TEMP;C:
    TEMP;C:TEMP;C:TEMP;C:TEMP;C:TEMP;C:BAT;C:UTIL;C:WI NDOWS;C:WINDOWSCOMMA
    ND;C:WINDOWSSYSTEM
    C:Windows>
    </font color=448800>

Posting Permissions

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