This question already has an answer here:
Active1 year, 8 months ago
A Quick History Lesson For those not familiar, AUTOEXEC.BAT was a file executed by the DOS command processor at startup. Within early Windows NT operating systems, this functionality slightly changed so AUTOEXEC.BAT was parsed at user logon. AUTOEXEC.BAT is a system file that was originally on DOS-type operating systems.It is a plain-text batch file in the root directory of the boot device.The name of the file is an abbreviation of 'automatic execution', which describes its function in automatically executing commands on system startup; the filename was coined in response to the 8.3 filename limitations of the FAT file system family. CONFIG.SYS and AUTOEXEC.BAT PC Hardware tutorial. These two familiar files play roles very similar to those in the old MS-DOS world, with one important exception: Windows 95 automatically loads drivers and sets defaults by using the IO.SYS file and the Registry. Jan 02, 2016 Went back to windows defender. I check another computer for what was typed in the 'Autoexec.bat' file and found nothing so I still believe that the autoexec and/or config.sys file is the startup problem. Can't erase them until I know that is it. I would like to edit the autoexec but I don't know what to put in for the file to work properly. Hi friends, Is it possible to automatically run a bat script after the winpe environment has been created? Im trying to do this to automatically kickoff of the windows 7 installation from windows pe environment.
How do I set a system environment variable in Windows 10 (without using the registry editor)?
(Note: Other answers don't specifically address Windows 10 - at least not yet - and they leave off important steps - like how to open the control panel - that changed since previous versions of Windows.)
Jared
JaredJared
1,20622 gold badges1010 silver badges1313 bronze badges
marked as duplicate by DavidPostill♦ windowsMar 13 '16 at 14:55
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
9 AnswersPowerShell method
You can list all environment variables with:
Get-ChildItem Env: .
To get the value of a specific variable:
$Env:PATH , where PATH is the name of the variable.
To set a variable:
[Environment]::SetEnvironmentVariable('PATH', 'C:TestPath', 'User') , the first parameter is the name of the variable, the second is the value, the third is the level of.
There are different ways to work with environment variables and certain quirks with them in PowerShell so consult the link for details.
Old method (no longer available in newer Windows 10 updates, use PowerShell or see other answers)
Go into Settings and click on System.
Then on the left side click About and select System info at the bottom.
In the new Control Panel window that opens, click Advanced system settings on the left.
Now in the new window that comes up, select Environment Variables.. Naruto vs dragon ball z game. at the bottom.
MC10MC10
7,17022 gold badges2525 silver badges4141 bronze badges
Still the same as ever: It’s in the old-style control panel’s “System” thingy. You can reach it with WinBreak or by right-clicking the Start button.
From there, select “Advanced system settings” → “Environment Variables”.
Or you can do it the hard way and find some other entry point to the old-style control panel, like the Network and Sharing Center or the Desktop folder(!).
Daniel B
37.1k88 gold badges7272 silver badges9292 bronze badges
I typed 'envir' in the 'Search the web and Windows' box and selected 'Edit environment variables for your account' under the 'Best Match'
ColinColin
If by 'system environment variables' you refer specifically to system-wide environment variables, then other answers have already covered this. However, if you want to edit both system-wide and user-specific environment variables then most (if not all) of these answers are inapplicable in general case.
Going through 'System' and then “Advanced system settings” -> “Environment Variables” will only work for accounts from
Administrators group, because only such accounts have access to “Advanced system settings”.
If you attempt do that from a regular user account, then trying to access “Advanced system settings” will trigger an UAC prompt asking you for administrator password. If you enter the password, “Advanced system settings” will successfully open, but any user-specific changes you make there will apply to the corresponding administrator's account (!), not to your original user's account.
In order to solve this problem (i.e. in order to give regular users the opportunity to edit their own environment variables) Windows provides another way to access the “Environment Variables” dialog.
Open Control Panel. Open User Accounts applet. On the left-hand side of that applet you will see a link that says Change my environment variables. Click that link, and it will take you to the same “Environment Variables” dialog for your user's environment variables.
If your user has administrator rights, you will be able to edit both sections of that dialog: user-specific environment variables (upper section) and system-wide environment variables (lower section). If you don't have administrator rights, you will only be able to edit the upper section: your own user-specific environment variables.
This is the proper way to edit environment variables in all post-UAC versions of Windows, not what is suggested in the majority of the answers above.
Unfortunately, Windows 10 November update (version 1511) destroyed this functionality. The Change my environment variables link no longer works. It is there, but it is dead. So for the post-November version of Windows 10 the correct answer is: it is generally impossible to edit user-specific environment variables in version 1511 of Windows 10 from regular user accounts. Microsoft has destroyed Windows 10 with this update and Windows 10 is now unusable. It will remain the case until they fix these ridiculous bugs in 1511 version of the OS.
For the time being one workaround for non-administrative accounts is to, well, add your user account to
Administrators group, logout, log back in, edit the variables using 'System' -> “Advanced system settings” method, and then take away administrative rights again..
An alternative workaround is to use PowerShell features as described herehttps://technet.microsoft.com/en-us/library/ff730964.aspx
Windows 10 Anniversary Update (version 1607) released August 2, 2016 finally fixed this bug.
AnTAnT
70622 gold badges1010 silver badges1717 bronze badges
Autoexec Batch Files
Just hit +R) at the same time to get command prompt. Then type sysdm.cpl, go to advanced and select Environmental Variables
Journeyman Geek♦
115k4646 gold badges227227 silver badges383383 bronze badges
user508751user508751
I also experience the problem described by many users in this thread, i.e. the link to the dialogue to set the environment variables of non-admin users is dead. As a simple workaround I have downloaded this nice tool:
It is portable and requires no permissions to install, it is simple to use, and actually provides a better overview of the variables than the system dialogue anyway.
Hope this helps.
krcoolskrcools
If you are not afraid of the command line, you should check out the command setx.
I quote from its description:
Autoexec.bat Windows 10 Location
Creates or modifies environment variables in the user or system environment. Can set variables based on arguments, regkeys or file input.
(Note that this command does not affect the current command shell's environment, only the environment of new processes, so you'll need to open a new command shell to see any changes.)
Windows 10 Autoexec File
fogbankfogbank
I found at least one way:
In the 'Search the web and Windows' box on the taskbar, type 'environment variables' then select 'Edit the system environment variables' then click 'Environment variables'
JaredJared
1,20622 gold badges1010 silver badges1313 bronze badges
In windows 10, changing the environment variables has not changed, It is the same as in windows 7:Right click on This PC (My Computer).Left Click Properties.Left Click Advanced system settings.Left Click Environment Variables..
Race 2 songs free download. At this point you can change the variables for the current user or the system
Rob MooreRob Moore
Not the answer you're looking for? Browse other questions tagged windowswindows-10 or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |