DOS Command
Results 1 to 3 of 3

Thread: DOS Command

  1. #1
    Join Date
    Sep 2003
    Posts
    2

    Unhappy DOS Command

    Hi all,

    I would like to ask if there is a command in DOS which is I can append the path to the path environment variable (that is when i type echo %path% system will returns me a path, and now I would like to append one more directory in the path). Thanks for help.

    K.H.

  2. #2
    Join Date
    Nov 2001
    Location
    Fishbel
    Posts
    2,412
    I believe that
    Code:
    SET PATH=%PATH%;X:\APPENDED\;X:\OTHER;X:\ETC\
    should do the trick.

    Substitute the actual pathnames you want to include for the X:\APPENDED that I used for examples.
    Welcome to the Eclipse(C). The Evolution of an Idea
    Options: DCM3 LCR VMS CVM Sil CPI VMI ANI 648 CA1 SACD500 Att CID RLS TIME DLG

    Version: ECLIPSE 2.0.0 09/09/98 System is BUSY Thu 07-21-05 1:31 pm
    Access Level = 10 Port = 10

  3. #3
    Join Date
    Aug 2001
    Location
    Joplin, MO USA
    Posts
    2,139
    Yep:

    And the path environment variable ( %PATH% ) can be used either at the first or the last of the command, depending on which order you would like the search to take place.

    Whenever a requested program is NOT on the DEFAULT path which the system is using, it will look down the PATH statement ( in order! ) to attempt to find your resource. Therefore, the PATH statement should be organized to reflect the preferred search order for your system usage.
    Various Windows and Linux platforms...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •