Start late with Computers

  • Thread starter phylotree
  • Start date
  • #1
48
1

Main Question or Discussion Point

I started my days late with computer world, but lately I have enjoyed myself pretty much with DOS command line options and usage. Today people use only mouses to click, I wonder why on earth do people still use command prompt. But I decided to learn about environment PATH SETTING, and I am stuck now that the path isn't really set.
For instance,
C:> SET PATH=%PATH%;C:\somepath
C:>PATH

Oh yes it sets my somepath
Then I issue

C:>exit

Then reopen the command prompt in Administrator mode
C:>PATH

Oh no, my somepath is not there anymore.

Thank you.
 

Answers and Replies

  • #2
Borek
Mentor
28,473
2,871
I guess you are opening DOS session under Windows. If so, PATH that you see exists only for the current session, and is lost when you close the session. When you start a new session it is copied from the Windows environment variables.

DOS uses only a bastardized version of command prompt, the real thing you can find under Linux. My understanding is that if you want to experiment with a real command line under Windows you can install Cygwin, but I never tried it myself.
 
  • #3
Borg
Science Advisor
Gold Member
1,877
2,327
If you want it to be permanent in Windows, you need to set it through the Control Panel.
Control Panel -> System -> Advanced tab -> Environment Variables.

I have found that Windows doesn't seem to pick up the new values until you restart your computer.
 
  • #4
rcgldr
Homework Helper
8,697
528
If you want it to be permanent in Windows, you need to set it through the Control Panel.
or starting with "my computer":

start, right click on "my computer" -> properties -> advanced -> environment variables.

Note there are two pairs of temp paths, one pair for system, one pair for user.
 

Related Threads on Start late with Computers

  • Last Post
Replies
7
Views
3K
Replies
6
Views
4K
Replies
5
Views
2K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
6
Views
3K
  • Last Post
Replies
20
Views
3K
  • Last Post
2
Replies
29
Views
3K
Replies
2
Views
6K
  • Last Post
Replies
4
Views
3K
Top