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: Edit Environment Variables via command line

03 Feb 2011   #1

Windows 7 64bit Professional
Edit Environment Variables via command line

I know how to udpate my environment variables using the stupidly slow to navigate windows. This is pointlessly slow IMHO.

How do i type a command, ONCE, that will update/add an environment variable that does not need to be retyped every time i open a new CLI session. The SET command seems pathetically lacking in this ability unless it has some undocumented argument beyond the two listed with /help.

My System SpecsSystem Spec
03 Feb 2011   #2

Windows 10 Pro x64

setx should do the trick.
My System SpecsSystem Spec

 Edit Environment Variables via command line

Thread Tools

Similar help and support threads
Thread Forum
Edit Task command-line of a Pinned Taskbar shortcut
Good morning. Is it possible to edit the command-line used in a certain Task when I right-click an icon in Taskbar? I want to customize the command-line from Firefox "Open new private window": I tried right-clicking it but it only shows...
General Discussion
Environment Variables
Hi I set up a User defined Enviro. Var. called GomFolder to be C:\Users|Damo\MyDocuments\NinjaTrader 7 See the attached clip 2015-01-23_1242 - Judge101010's library My understanding is that this should set up a folder called GomFolder in the NinjaTrader 7 folder. Is this correct? If...
General Discussion
What are Environment Variables in Computer?
Hey, Can anyone explain are environment variables are within the Advanced System Settings of Computer? I've had to create a new environment variable for a Java complier, and I was just wondering what exactly are environment variables are and why are they used? Thanks, Harry P.S I've...
General Discussion
How to edit command line in shortcuts for .exe
I want to edit a command line in my Quake4 .exe shortcut so I can enable an ingame singleplayer cheat console but I am not sure how to do this... am really new with computers. Cheat: Cheats List Create a shortcut to the Quake4 executable and edit the shortcut's command line with...

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 19:20.
Twitter Facebook Google+