Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Operating Systems > Windows   »   DOS set PATH command

 
Thread Tools Display Modes
Question
 
 
#1  
Old Jan 5, 2007, 09:34 PM
mazeltov
New Member
mazeltov is offline
 
Join Date: Jan 2007
Posts: 1
mazeltov See this member's comment history on his/her Profile page.
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

Reply With Quote
 
     

Answers
 
 
Old Jan 5, 2007, 09:59 PM   #2  
Full Member
dmatos is offline
 
Join Date: Jan 2006
Posts: 204
dmatos See this member's comment history on his/her Profile page.
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.
  Reply With Quote
 
     

Bookmarks


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
Run command not found melfarra Windows 3 May 4, 2007 10:56 PM
Right path? salamander Psychics 1 Dec 30, 2006 12:37 PM
Shoot-set and Quick-set Combo oldcoach Volleyball 2 Sep 21, 2005 06:54 AM
Dos Command Window rcethindra Windows 1 Dec 1, 2004 11:40 AM
How use AT command to set a modem default to voice khtay Networking 1 Jul 9, 2003 01:46 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 02:54 AM.