Ask Experts Questions for FREE Help !
Ask
    mazeltov's Avatar
    mazeltov Posts: 1, Reputation: 1
    New Member
     
    #1

    Jan 5, 2007, 10:34 PM
    DOS set PATH command
    I used set PATH command to set the path as set PATH=c:/TC;and it works well
    However,some users adds %PATH% after it, what does it imply
    dmatos's Avatar
    dmatos Posts: 204, Reputation: 26
    Full Member
     
    #2

    Jan 5, 2007, 10:59 PM
    You can have multiple PATHs set at a single time. By saying:

    set PATH=c:/TC;

    the only path set is c:/TC. If you say:

    set PATH=c:/TC;%PATH%

    You are setting the path to c:/TC as well as all previous values of PATH. The percent signs denote an environment variable, which will be expanded to it's contents when the command is run. For example, say I type the following:

    set PATH=c:/bar;
    set PATH=c:/foo;%PATH%
    PATH
    > c:/foo;c:/bar
    set PATH=c:/foo;
    PATH
    > c:/foo;

    Make sense? You use this if you don't want to eliminate all of the other valid paths while setting a new one as well.
    francisdt's Avatar
    francisdt Posts: 1, Reputation: 1
    New Member
     
    #3

    Jan 13, 2010, 07:23 AM
    Awesome explanation

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Run command not found [ 11 Answers ]

Please I can't find the run command in my start list. How to reenable it to run regedit.. Please help..

Right path? [ 2 Answers ]

Hello, Can you tell me if I'm doing the right thing in disrupting my relationship with a male friend of mine? Like, what would be the probable outcome of this relationship if I try to keep it through the next year? Thank you very much for your help on this Salamander

Shoot-set and Quick-set Combo [ 2 Answers ]

I have not seen this yet, but I haven't seen everything... lol I was thinking that these two misdirection sets could be used in a single play because the quick-set causes the opponent to position, dig-in, and focus on the quick-set hitter, but the ball could be shoot-set along the net for anyone...

Dos Command Window [ 1 Answers ]

Hello Friends, I have scheduled a batch file to start of in the night. I want to see the DOS window to remain open and not close after execution. I want this this to check the next morning if all the actions went OK. Is there any command that can keep the DOS screen open till I close. Thanks...

How use AT command to set a modem default to voice [ 1 Answers ]

Recently, I bought a headphone come with mic. I plug in the cable speaker and mic from headphone to my modem port (speaker & mic) accordingly. After I dialed a phone number, I can hear someone voice. I unable to speak to them. Why ? I got some advise from my friend that I need to turn on "duplex"...


View more questions Search