Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: setting an environmental variable from command prompt

05 Sep 2012   #1

Windows 7 - 64 bit
 
 
setting an environmental variable from command prompt

I live in the Linux world, so this might be a stupid question to Windows users.

I need to set an environmental variable. I know I can do this through the control panel, but what a pain in the ass.

If I open a command prompt and use the "set" command, the variable seems to last only as long as the commend prompt session is open.

How do I set an environmental variable from the command prompt so that it lives beyond the command prompt session?

And while I'm at it, can someone recommend a book that explains how the Windows OS works? I'm not looking for a "Windows for Dummies" presentation, but one that goes a little deeper ... something akin to "Linux in a Nutshell".

My System SpecsSystem Spec
.

05 Sep 2012   #2

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

My System SpecsSystem Spec
05 Sep 2012   #3

Windows 7 - 64 bit
 
 

The link shows how to set a variable through the Command Panel. My question is: Can an environmental variable be permanently set from the command prompt?
My System SpecsSystem Spec
.


06 Sep 2012   #4

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Not one for me I'm afraid. i will have to leave that to others!
My System SpecsSystem Spec
06 Sep 2012   #5

Windows 7 x64 (SP1)
 
 

SetX - Set environment variables | SS64.com
setx is built in Windows 7.
My System SpecsSystem Spec
06 Sep 2012   #6

Windows 7 - 64 bit
 
 

Thanks a million, LogicEarth!

Can you recommend a good book that explains how the Windows OS works? Something like "Linux in a Nutshell", not "Windows for Dummies"?
My System SpecsSystem Spec
06 Sep 2012   #7

Windows 7 x64 (SP1)
 
 

Are you wanting a deep down level of the Windows Kernel and how it does things?
There is Windows Internals: Windows Internals Book

Otherwise I don't really know, I never really used a book to learn Windows or Linux.
My System SpecsSystem Spec
Reply

 setting an environmental variable from command prompt





Thread Tools



Similar help and support threads for2: setting an environmental variable from command prompt
Thread Forum
Command Prompt Tutorials
SSH command prompt Performance & Maintenance
Help needed executing command prompt command General Discussion
Simple GPO setting to Enable Command Prompt is overwritten by GPO 2? General Discussion
Run administrative command prompt from command prompt General Discussion
Solved Command Prompt General Discussion
Command Prompt command <ipconfig> not working Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:49 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33