{"id":21274,"date":"2021-07-25T14:38:26","date_gmt":"2021-07-25T14:38:26","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=21274"},"modified":"2024-12-07T14:17:55","modified_gmt":"2024-12-07T14:17:55","slug":"how-to-edit-path-variable-on-windows-11","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-edit-path-variable-on-windows-11\/","title":{"rendered":"How to edit PATH variable on Windows 11?"},"content":{"rendered":"<h1>Edit PATH variable on Windows 11?<\/h1>\n<p>In this tutorial, you will learn how to edit the <strong>PATH<\/strong> variable on Windows 11 operating system. <strong>PATH<\/strong> is a system environment variable that Windows uses to locate programs from the command line. It is a semicolon-separated string of program directories.<\/p>\n<h3>Check PATH variable<\/h3>\n<p>To check the <strong>PATH<\/strong> environment variable, open the command prompt.<\/p>\n<p>Steps to launch command prompt on Windows 11 PC.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-launch-command-prompt-on-windows-11\/\">Launch Command Prompt on Windows<\/a><\/li>\n<\/ul>\n<p>Type the following command.<\/p>\n<p><strong>\\&gt; echo %PATH%<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21640\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11.png\" alt=\"PATH variable Windows 11\" width=\"1920\" height=\"1067\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11-300x167.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11-1024x569.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11-768x427.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/PATH-variable-Windows-11-1536x854.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h2>Edit PATH variable<\/h2>\n<p>Click on the Search icon in the <strong>Taskbar<\/strong>.<\/p>\n<p>Type <strong>Environment<\/strong> in the search bar.<\/p>\n<p>Click on the <strong>Edit the system environment variables<\/strong> Control panel item.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21279\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11.png\" alt=\"Edit Environment Variables Windows 11\" width=\"1712\" height=\"1074\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11.png 1712w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11-300x188.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11-1024x642.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11-768x482.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Environment-Variables-Windows-11-1536x964.png 1536w\" sizes=\"auto, (max-width: 1712px) 100vw, 1712px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>##Alternatively,\u00a0 open the Run command window ( <em>Windows Key + R<\/em> ) keyboard shortcut.<\/p>\n<p>Type <em><strong>sysdm.cpl<\/strong><\/em> and click on the <strong>OK<\/strong> button to open the <strong>System Properties<\/strong> window.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21284\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Environment-Variables-Windows-11.png\" alt=\"Environment Variables Windows 11\" width=\"1202\" height=\"996\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Environment-Variables-Windows-11.png 1202w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Environment-Variables-Windows-11-300x249.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Environment-Variables-Windows-11-1024x849.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Environment-Variables-Windows-11-768x636.png 768w\" sizes=\"auto, (max-width: 1202px) 100vw, 1202px\" \/><\/p>\n<p>In the <strong>System Properties<\/strong> window, switch to the <strong>Advanced<\/strong> tab and click on the <strong>Environment Variables&#8230;<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21285\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11.png\" alt=\"Edit Path Environment Variable Windows 11\" width=\"1620\" height=\"1044\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11.png 1620w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11-300x193.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11-1024x660.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11-768x495.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Edit-Path-Environment-Variable-Windows-11-1536x990.png 1536w\" sizes=\"auto, (max-width: 1620px) 100vw, 1620px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Select the <strong>PATH<\/strong> system variables and click on the <strong>Edit&#8230;<\/strong> button. If the <strong>PATH<\/strong> environment variable does not exist, click the <strong>New&#8230;<\/strong> button.<\/p>\n<p>To edit we can change the entities listed in the window screen.<\/p>\n<h2>Append to PATH<\/h2>\n<p>To append the <strong>PATH<\/strong> variable, click on the <strong>New<\/strong> button and add the program.<\/p>\n<p>For example, to append JDK bin directory by adding the following entry:<\/p>\n<p>%JAVA_HOME%\\bin<\/p>\n<p>We can refer to other system variables with enclosing %. For example, to refer to the path of the Java home directory, we can use %JAVA_HOME%. JAVA_HOME is a system environment variable that we need to set prior to accessing it.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21641\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11.png\" alt=\"Append to PATH Win11\" width=\"1916\" height=\"1032\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11.png 1916w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11-300x162.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11-1024x552.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11-768x414.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Append-to-PATH-Win11-1536x827.png 1536w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>That&#8217;s it. We have successfully appended the JDK directory to the PATH variable.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit PATH variable on Windows 11 : In this tutorial, you will learn how to edit the PATH variable on Windows 11 operating system. PATH is a system environment variable that<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-21274","post","type-post","status-publish","format-standard","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/21274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=21274"}],"version-history":[{"count":28,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/21274\/revisions"}],"predecessor-version":[{"id":26231,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/21274\/revisions\/26231"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=21274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=21274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=21274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}