Edit Environment Variables via command line

seronis

New member
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 Computer

Computer Manufacturer/Model Number
Aspire 8735G-6502
OS
Windows 7 64bit Professional
CPU
Intel Core2 Duo T6600
Graphics Card(s)
NVIDIA GeForce GT 240M
setx should do the trick.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Back
Top