Answered by:
Setting environment variables on Windws 10 through the cmd

Question
-
Firstly ,is autoexec.bat residing on the latest Windows 10 edition(or does it go by another name??)?If yes, how do I add an environment variable to the .bat?Tuesday, June 21, 2016 6:31 AM
Answers
-
Hi SpecialOps10,
autoexec.bat was only used for DOS based windows like 95, 98 and ME. Stopped being used with 2000.
https://social.technet.microsoft.com/Forums/windows/en-US/e017e09f-9c3c-4b37-a1ec-95626c378fcf/windows-7-will-not-read-autoexecbat?forum=w7itprogeneralIn addition to ZigZag3143x's suggestion to setup configure the environment variables from the control panel. We could also use set command to display its environment block or to create new environment variables.
https://technet.microsoft.com/en-us/library/cc754250(v=ws.11).aspx
Here is a similar case for reference.
define variables as path to autoexec.bat for windows 10
Best regards
Please mark the reply as an answer if you find it is helpful.
If you have feedback for TechNet Support, contact tnmff@microsoft.com
- Edited by Rick_LiMicrosoft contingent staff Wednesday, June 22, 2016 5:48 AM
- Marked as answer by ZigZag3143x Wednesday, June 22, 2016 11:29 AM
Wednesday, June 22, 2016 5:46 AM
All replies
-
There is no "auutoexec" in win 10. What kind of variable are you add?
You can add a variable in control panel>system control panel>advanced system settings>variables.
Wanikiya and Dyami--Team Zigzag Windows IT-PRO (MS-MVP)
- Proposed as answer by Rick_LiMicrosoft contingent staff Wednesday, June 22, 2016 5:49 AM
Tuesday, June 21, 2016 11:08 AM -
Hi SpecialOps10,
autoexec.bat was only used for DOS based windows like 95, 98 and ME. Stopped being used with 2000.
https://social.technet.microsoft.com/Forums/windows/en-US/e017e09f-9c3c-4b37-a1ec-95626c378fcf/windows-7-will-not-read-autoexecbat?forum=w7itprogeneralIn addition to ZigZag3143x's suggestion to setup configure the environment variables from the control panel. We could also use set command to display its environment block or to create new environment variables.
https://technet.microsoft.com/en-us/library/cc754250(v=ws.11).aspx
Here is a similar case for reference.
define variables as path to autoexec.bat for windows 10
Best regards
Please mark the reply as an answer if you find it is helpful.
If you have feedback for TechNet Support, contact tnmff@microsoft.com
- Edited by Rick_LiMicrosoft contingent staff Wednesday, June 22, 2016 5:48 AM
- Marked as answer by ZigZag3143x Wednesday, June 22, 2016 11:29 AM
Wednesday, June 22, 2016 5:46 AM