CINXE.COM

Environment variable - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Environment variable - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"9516c725-3050-4b4b-9407-a4b8217dfacc","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Environment_variable","wgTitle":"Environment variable","wgCurRevisionId":1259795430,"wgRevisionId":1259795430,"wgArticleId":349504,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["CS1 errors: periodical ignored","CS1 German-language sources (de)","Webarchive template archiveis links","Articles needing additional references from May 2023","All articles needing additional references","Articles with short description","Short description is different from Wikidata","Use dmy dates from April 2019","Use list-defined references from January 2022","All articles with unsourced statements","Articles with unsourced statements from August 2014", "Windows commands","Operating system technology","Environment variables"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Environment_variable","wgRelevantArticleId":349504,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":100000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false, "wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q400857","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.cite.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view", "ext.cite.ux-enhancements","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.quicksurveys.init","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Environment variable - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Environment_variable"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Environment_variable&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Environment_variable"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Environment_variable rootpage-Environment_variable skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Environment+variable" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Environment+variable" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Environment+variable" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Environment+variable" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Design" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Design"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Design</span> </div> </a> <ul id="toc-Design-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Syntax" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Syntax</span> </div> </a> <button aria-controls="toc-Syntax-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Syntax subsection</span> </button> <ul id="toc-Syntax-sublist" class="vector-toc-list"> <li id="toc-Unix" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Unix"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Unix</span> </div> </a> <ul id="toc-Unix-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-DOS,_OS/2_and_Windows" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#DOS,_OS/2_and_Windows"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>DOS, OS/2 and Windows</span> </div> </a> <ul id="toc-DOS,_OS/2_and_Windows-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Assignment:_Unix" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Assignment:_Unix"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Assignment: Unix</span> </div> </a> <ul id="toc-Assignment:_Unix-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Assignment:_DOS,_OS/2_and_Windows" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Assignment:_DOS,_OS/2_and_Windows"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Assignment: DOS, OS/2 and Windows</span> </div> </a> <ul id="toc-Assignment:_DOS,_OS/2_and_Windows-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Examples" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Examples"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Examples</span> </div> </a> <ul id="toc-Examples-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-True_environment_variables" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#True_environment_variables"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>True environment variables</span> </div> </a> <button aria-controls="toc-True_environment_variables-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle True environment variables subsection</span> </button> <ul id="toc-True_environment_variables-sublist" class="vector-toc-list"> <li id="toc-Unix_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Unix_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Unix</span> </div> </a> <ul id="toc-Unix_2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-DOS" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#DOS"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>DOS</span> </div> </a> <ul id="toc-DOS-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-OS/2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#OS/2"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>OS/2</span> </div> </a> <ul id="toc-OS/2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Windows" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Windows"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Windows</span> </div> </a> <ul id="toc-Windows-sublist" class="vector-toc-list"> <li id="toc-Default_values" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Default_values"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4.1</span> <span>Default values</span> </div> </a> <ul id="toc-Default_values-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Pseudo-environment_variables" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Pseudo-environment_variables"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Pseudo-environment variables</span> </div> </a> <button aria-controls="toc-Pseudo-environment_variables-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Pseudo-environment variables subsection</span> </button> <ul id="toc-Pseudo-environment_variables-sublist" class="vector-toc-list"> <li id="toc-DOS_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#DOS_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>DOS</span> </div> </a> <ul id="toc-DOS_2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Windows_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Windows_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Windows</span> </div> </a> <ul id="toc-Windows_2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_shells" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_shells"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>Other shells</span> </div> </a> <ul id="toc-Other_shells-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notes" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Notes</span> </div> </a> <ul id="toc-Notes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_reading" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Further_reading"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Further reading</span> </div> </a> <ul id="toc-Further_reading-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Environment variable</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 22 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-22" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">22 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/%D0%9F%D1%80%D0%BE%D0%BC%D0%B5%D0%BD%D0%BB%D0%B8%D0%B2%D0%B0_%D0%BD%D0%B0_%D1%81%D1%80%D0%B5%D0%B4%D0%B0%D1%82%D0%B0" title="Променлива на средата – Bulgarian" lang="bg" hreflang="bg" data-title="Променлива на средата" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Variable_d%27entorn" title="Variable d&#039;entorn – Catalan" lang="ca" hreflang="ca" data-title="Variable d&#039;entorn" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Prom%C4%9Bnn%C3%A1_prost%C5%99ed%C3%AD" title="Proměnná prostředí – Czech" lang="cs" hreflang="cs" data-title="Proměnná prostředí" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Umgebungsvariable" title="Umgebungsvariable – German" lang="de" hreflang="de" data-title="Umgebungsvariable" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Variable_de_entorno" title="Variable de entorno – Spanish" lang="es" hreflang="es" data-title="Variable de entorno" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%85%D8%AA%D8%BA%DB%8C%D8%B1_%D9%85%D8%AD%DB%8C%D8%B7%DB%8C" title="متغیر محیطی – Persian" lang="fa" hreflang="fa" data-title="متغیر محیطی" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Variable_d%27environnement" title="Variable d&#039;environnement – French" lang="fr" hreflang="fr" data-title="Variable d&#039;environnement" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%ED%99%98%EA%B2%BD_%EB%B3%80%EC%88%98" title="환경 변수 – Korean" lang="ko" hreflang="ko" data-title="환경 변수" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/Yanayi_mai_canzawa" title="Yanayi mai canzawa – Hausa" lang="ha" hreflang="ha" data-title="Yanayi mai canzawa" data-language-autonym="Hausa" data-language-local-name="Hausa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Variabile_d%27ambiente" title="Variabile d&#039;ambiente – Italian" lang="it" hreflang="it" data-title="Variabile d&#039;ambiente" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%9E%D7%A9%D7%AA%D7%A0%D7%94_%D7%A1%D7%91%D7%99%D7%91%D7%94" title="משתנה סביבה – Hebrew" lang="he" hreflang="he" data-title="משתנה סביבה" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/K%C3%B6rnyezeti_v%C3%A1ltoz%C3%B3k" title="Környezeti változók – Hungarian" lang="hu" hreflang="hu" data-title="Környezeti változók" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E7%92%B0%E5%A2%83%E5%A4%89%E6%95%B0" title="環境変数 – Japanese" lang="ja" hreflang="ja" data-title="環境変数" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Zmienna_%C5%9Brodowiskowa" title="Zmienna środowiskowa – Polish" lang="pl" hreflang="pl" data-title="Zmienna środowiskowa" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Vari%C3%A1vel_de_ambiente" title="Variável de ambiente – Portuguese" lang="pt" hreflang="pt" data-title="Variável de ambiente" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%9F%D0%B5%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D1%81%D1%80%D0%B5%D0%B4%D1%8B" title="Переменная среды – Russian" lang="ru" hreflang="ru" data-title="Переменная среды" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Ymp%C3%A4rist%C3%B6muuttuja" title="Ympäristömuuttuja – Finnish" lang="fi" hreflang="fi" data-title="Ympäristömuuttuja" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%9A%E0%AF%82%E0%AE%B4%E0%AE%B2%E0%AF%8D_%E0%AE%AE%E0%AE%BE%E0%AE%B1%E0%AE%BF" title="சூழல் மாறி – Tamil" lang="ta" hreflang="ta" data-title="சூழல் மாறி" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/%C3%87evre_de%C4%9Fi%C5%9Fkeni" title="Çevre değişkeni – Turkish" lang="tr" hreflang="tr" data-title="Çevre değişkeni" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%97%D0%BC%D1%96%D0%BD%D0%BD%D1%96_%D1%81%D0%B5%D1%80%D0%B5%D0%B4%D0%BE%D0%B2%D0%B8%D1%89%D0%B0" title="Змінні середовища – Ukrainian" lang="uk" hreflang="uk" data-title="Змінні середовища" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Bi%E1%BA%BFn_m%C3%B4i_tr%C6%B0%E1%BB%9Dng" title="Biến môi trường – Vietnamese" lang="vi" hreflang="vi" data-title="Biến môi trường" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F" title="环境变量 – Chinese" lang="zh" hreflang="zh" data-title="环境变量" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q400857#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Environment_variable" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Environment_variable" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Environment_variable"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Environment_variable"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Environment_variable" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Environment_variable" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;oldid=1259795430" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Environment_variable&amp;id=1259795430&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FEnvironment_variable"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FEnvironment_variable"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Environment_variable&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Environment_variable&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q400857" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1251242444">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><table class="box-More_citations_needed plainlinks metadata ambox ambox-content ambox-Refimprove" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><a href="/wiki/File:Question_book-new.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/50px-Question_book-new.svg.png" decoding="async" width="50" height="39" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/75px-Question_book-new.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/100px-Question_book-new.svg.png 2x" data-file-width="512" data-file-height="399" /></a></span></div></td><td class="mbox-text"><div class="mbox-text-span">This article <b>needs additional citations for <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verification</a></b>.<span class="hide-when-compact"> Please help <a href="/wiki/Special:EditPage/Environment_variable" title="Special:EditPage/Environment variable">improve this article</a> by <a href="/wiki/Help:Referencing_for_beginners" title="Help:Referencing for beginners">adding citations to reliable sources</a>. Unsourced material may be challenged and removed.<br /><small><span class="plainlinks"><i>Find sources:</i>&#160;<a rel="nofollow" class="external text" href="https://www.google.com/search?as_eq=wikipedia&amp;q=%22Environment+variable%22">"Environment variable"</a>&#160;–&#160;<a rel="nofollow" class="external text" href="https://www.google.com/search?tbm=nws&amp;q=%22Environment+variable%22+-wikipedia&amp;tbs=ar:1">news</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.google.com/search?&amp;q=%22Environment+variable%22&amp;tbs=bkt:s&amp;tbm=bks">newspapers</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.google.com/search?tbs=bks:1&amp;q=%22Environment+variable%22+-wikipedia">books</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://scholar.google.com/scholar?q=%22Environment+variable%22">scholar</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.jstor.org/action/doBasicSearch?Query=%22Environment+variable%22&amp;acc=on&amp;wc=on">JSTOR</a></span></small></span> <span class="date-container"><i>(<span class="date">May 2023</span>)</i></span><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> <div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">User-definable variable associated with each running process in many operating systems</div> <p class="mw-empty-elt"> </p><p>An <b>environment variable</b> is a user-definable <a href="/wiki/Value_(computer_science)" title="Value (computer science)">value</a> that can affect the way running <a href="/wiki/Process_(computing)" title="Process (computing)">processes</a> will behave on a computer. Environment variables are part of the environment in which a process runs. For example, a running process can query the value of the TEMP environment variable to discover a suitable location to store <a href="/wiki/Temporary_file" title="Temporary file">temporary files</a>, or the HOME or USERPROFILE variable to find the <a href="/wiki/Directory_structure" title="Directory structure">directory structure</a> owned by the user running the process. </p><p>They were introduced in their modern form in 1979 with <a href="/wiki/Version_7_Unix" title="Version 7 Unix">Version 7 Unix</a>, so are included in all <a href="/wiki/Unix" title="Unix">Unix</a> <a href="/wiki/Operating_system" title="Operating system">operating system</a> flavors and variants from that point onward including <a href="/wiki/Linux" title="Linux">Linux</a> and <a href="/wiki/MacOS" title="MacOS">macOS</a>. From <a href="/wiki/PC_DOS_2.0" class="mw-redirect" title="PC DOS 2.0">PC&#160;DOS 2.0</a> in 1982, all succeeding <a href="/wiki/Microsoft" title="Microsoft">Microsoft</a> operating systems, including <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, and <a href="/wiki/OS/2" title="OS/2">OS/2</a> also have included them as a feature, although with somewhat different syntax, usage and standard variable names. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Design">Design</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=1" title="Edit section: Design"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In all <a href="/wiki/Unix" title="Unix">Unix</a> and <a href="/wiki/Unix-like" title="Unix-like">Unix-like</a> systems, as well as on Windows, each process has its own separate set of environment <a href="/wiki/Variable_(programming)" class="mw-redirect" title="Variable (programming)">variables</a>. By default, when a process is created, it inherits a duplicate <a href="/wiki/Run-time_environment" class="mw-redirect" title="Run-time environment">run-time environment</a> of its parent process, except for explicit changes made by the parent when it creates the child. At the <a href="/wiki/Application_programming_interface" class="mw-redirect" title="Application programming interface">API</a> level, these changes must be done between running <code>fork</code> and <code>exec</code>. Alternatively, from <a href="/wiki/Command_shell" class="mw-redirect" title="Command shell">command shells</a> such as <a href="/wiki/Bash_(Unix_shell)" title="Bash (Unix shell)">bash</a>, a user can change environment variables for a particular command invocation by indirectly invoking it via <code><a href="/wiki/Env" title="Env">env</a></code> or using the <code>ENVIRONMENT_VARIABLE=VALUE &lt;command&gt;</code> notation. A running program can access the values of environment variables for configuration purposes. </p><p><a href="/wiki/Shell_script" title="Shell script">Shell scripts</a> and <a href="/wiki/Batch_file" title="Batch file">batch files</a> use environment variables to communicate data and preferences to <a href="/wiki/Child_process" title="Child process">child processes</a>. They can also be used to store temporary values for reference later in a shell script. However, in Unix, <a href="#Unix">non-exported variables</a> are preferred for this as they do not leak outside the process. </p><p>In Unix, an environment variable that is changed in a script or compiled program will only affect that process and possibly child processes. The parent process and any unrelated processes will not be affected. Similarly, changing or removing a variable's value inside a <a href="/wiki/DOS" title="DOS">DOS</a> or Windows batch file will change the variable for the duration of <code><a href="/wiki/COMMAND.COM" title="COMMAND.COM">COMMAND.COM</a></code>or <code><a href="/wiki/CMD.EXE" class="mw-redirect" title="CMD.EXE">CMD.EXE</a></code>'s existence, respectively. </p><p>In Unix, the environment variables are normally initialized during system startup by the system <a href="/wiki/Init" title="Init">init</a> <a href="/wiki/Startup_script" class="mw-redirect" title="Startup script">startup scripts</a>, and hence inherited by all other processes in the system. Users can, and often do, augment them in the profile script for the command shell they are using. In Microsoft Windows, each environment variable's default value is stored in the <a href="/wiki/Windows_Registry" title="Windows Registry">Windows Registry</a> or set in the <code><a href="/wiki/AUTOEXEC.BAT" title="AUTOEXEC.BAT">AUTOEXEC.BAT</a></code> file. </p><p>On <a href="/wiki/Unix" title="Unix">Unix</a>, a <a href="/wiki/Setuid" title="Setuid">setuid</a> program is given an environment chosen by its caller, but it runs with different authority from its caller. The <a href="/wiki/Dynamic_linker" title="Dynamic linker">dynamic linker</a> will usually load code from locations specified by the environment variables <code>$LD_LIBRARY_PATH</code> and <code>$LD_PRELOAD</code> and run it with the process's authority. If a setuid program did this, it would be insecure, because its caller could get it to run arbitrary code and hence misuse its authority. For this reason, <a href="/wiki/Libc" class="mw-redirect" title="Libc">libc</a> unsets these environment variables at startup in a setuid process. setuid programs usually unset unknown environment variables and check others or set them to reasonable values. </p><p>In general, the collection of environment variables function as an <a href="/wiki/Associative_array" title="Associative array">associative array</a> where both the keys and values are strings. The interpretation of characters in either string differs among systems. When data structures such as lists need to be represented, it is common to use a colon (common on Unix and Unix-like) or semicolon-delineated (common on Windows and DOS) list. </p> <div class="mw-heading mw-heading2"><h2 id="Syntax">Syntax</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=2" title="Edit section: Syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The variables can be used both in scripts and on the <a href="/wiki/Command_line" class="mw-redirect" title="Command line">command line</a>. They are usually referenced by putting special symbols in front of or around the variable name. </p><p>It is conventional for environment-variable names to be chosen to be in all upper cases. In programming code generally, this helps to distinguish environment variables from other kinds of names in the code. Environment-variable names are case sensitive on Unix-like operating systems but not on DOS, OS/2, and Windows. </p> <div class="mw-heading mw-heading3"><h3 id="Unix">Unix</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=3" title="Edit section: Unix"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In most Unix and Unix-like <a href="/wiki/Command-line_shell" class="mw-redirect" title="Command-line shell">command-line shells</a>, an environment variable's value is retrieved by placing a <code>$</code> sign before the variable's name. If necessary, the name can also be surrounded by braces. </p><p>To display the user home directory, the user may type: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">echo</span><span class="w"> </span><span class="nv">$HOME</span> </pre></div> <p>In Unix and Unix-like systems, the names of environment variables are case-sensitive. </p><p>The command <b><code><a href="/wiki/Env_(shell)" class="mw-redirect" title="Env (shell)">env</a></code></b> displays all environment variables and their values. The command <b><code>printenv</code></b> can also be used to print a single variable by giving that variable name as the sole argument to the command. </p> <div class="mw-heading mw-heading3"><h3 id="DOS,_OS/2_and_Windows"><span id="DOS.2C_OS.2F2_and_Windows"></span>DOS, OS/2 and Windows</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=4" title="Edit section: DOS, OS/2 and Windows"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In DOS, OS/2 and Windows command-line interpreters such as <code>COMMAND.COM</code> and <code>CMD.EXE</code>, an environment variable is retrieved by placing a <code>%</code> sign before and after it. </p><p>In DOS, OS/2 and Windows command-line interpreters as well as their <a href="/wiki/API" title="API">API</a>, upper or lower case is not distinguished for environment variable names. </p><p>The environment variable named <code>HOMEDRIVE</code> contains the drive letter (plus its trailing <code>:</code> colon) of the user's home directory, whilst <code>HOMEPATH</code> contains the full path of the user's home directory within that drive. </p><p>So to see the home drive and path, the user may type this: </p> <div class="mw-highlight mw-highlight-lang-batch mw-content-ltr" dir="ltr"><pre><span></span><span class="k">ECHO</span> <span class="nv">%HOMEDRIVE%%HOMEPATH%</span> </pre></div> <p>The command <b><code>SET</code></b> (with no arguments) displays all environment variables and their values. In <a href="/wiki/Windows_NT" title="Windows NT">Windows NT</a> and later <code>set</code> can also be used to print all variables whose name begins with a given prefix by giving the prefix as the sole argument to the command. </p><p>In <a href="/wiki/Windows_PowerShell" class="mw-redirect" title="Windows PowerShell">Windows PowerShell</a>, the user may type any of the following: </p> <div class="mw-highlight mw-highlight-lang-powershell mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">echo </span><span class="nv">$env:homedrive$env:homepath</span> <span class="nb">Write-Output</span> <span class="nv">$env:homedrive$env:homepath</span> <span class="s2">&quot;$env:homedrive$env:homepath&quot;</span> </pre></div> <p>In PowerShell, upper or lower case is not distinguished for environment variable names. </p><p>The following command displays all environment variables and their values: </p> <div class="mw-highlight mw-highlight-lang-powershell mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">get-childitem</span> <span class="n">env</span><span class="p">:</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Assignment:_Unix">Assignment: Unix</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=5" title="Edit section: Assignment: Unix"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The commands <code>env</code> and <code>set</code> can be used to set environment variables and are often incorporated directly into the shell. </p><p>The following commands can also be used, but are often dependent on a certain shell. </p> <pre><i>VARIABLE</i>=<i>value</i> # (there must be no spaces around the equals sign) export <i>VARIABLE</i> # for <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne</a> and related shells </pre> <pre>export <i>VARIABLE</i>=<i>value</i> # for <a href="/wiki/KornShell" title="KornShell">ksh</a>, <a href="/wiki/Bash_(Unix_shell)" title="Bash (Unix shell)">bash</a>, and related shells </pre> <pre>setenv <i>VARIABLE</i> <i>value</i> # for <a href="/wiki/C_shell" title="C shell">csh</a> and related shells </pre> <p>A few simple principles govern how environment variables achieve their effect. </p><p>Environment variables are local to the process in which they were set. If two shell processes are spawned and the value of an environment variable is changed in one, that change will not be seen by the other. </p><p>When a child process is created, it inherits all the environment variables and their values from the parent process. Usually, when a program calls another program, it first creates a child process by <a href="/wiki/Fork_(system_call)" title="Fork (system call)">forking</a>, then the child adjusts the environment as needed and lastly the child <a href="/wiki/Exec_(system_call)" title="Exec (system call)">replaces</a> itself with the program to be called. This procedure gives the calling program control over the environment of the called program. </p><p>In Unix shells, variables may be assigned without the <b><code>export</code></b> keyword. Variables defined in this way are displayed by the <b><code>set</code></b> command, but are <i>not</i> true environment variables, as they are stored only by the shell and are unknown to all other processes. The <code>printenv</code> command will not display them, and child processes do not inherit them. </p> <pre><i>VARIABLE</i>=<i>value</i> </pre> <p>The prefix syntax exports a "true" environment variable to a child process without affecting the current process:<sup id="cite_ref-ClassicShS_1-0" class="reference"><a href="#cite_note-ClassicShS-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> </p> <pre><i>VARIABLE</i>=<i>value</i> program_name [arguments] </pre> <p>The persistence of an environment variable can be session-wide or system-wide. </p><p><b><code>unset</code></b> is a builtin command implemented by both the <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a> family (<code>sh</code>, <code>ksh</code>, <code>bash</code>, etc.) and the <a href="/wiki/C_shell" title="C shell">C shell</a> family (csh, tcsh, etc.) of <a href="/wiki/Unix_shell" title="Unix shell">Unix command line shells</a>. It unsets a shell variable, removing it from memory and the shell's exported environment. It is implemented as a <a href="/wiki/Shell_builtin" title="Shell builtin">shell builtin</a>, because it directly manipulates the internals of the shell.<sup id="cite_ref-OG_unset_2-0" class="reference"><a href="#cite_note-OG_unset-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Bash_unset_3-0" class="reference"><a href="#cite_note-Bash_unset-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> Read-only shell variables cannot be unset. If one tries to unset a read-only variable, the <code>unset</code> command will print an error message and return a non-zero exit code. </p> <div class="mw-heading mw-heading3"><h3 id="Assignment:_DOS,_OS/2_and_Windows"><span id="Assignment:_DOS.2C_OS.2F2_and_Windows"></span>Assignment: DOS, OS/2 and Windows</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=6" title="Edit section: Assignment: DOS, OS/2 and Windows"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In DOS, OS/2 and Windows command-line interpreters such as <code>COMMAND.COM</code> and <code>CMD.EXE</code>, the <b><code><a href="/wiki/SET_(DOS_command)" class="mw-redirect" title="SET (DOS command)">SET</a></code></b> command is used to assign environment variables and values using the following arguments: </p> <div class="mw-highlight mw-highlight-lang-batch mw-content-ltr" dir="ltr"><pre><span></span> <span class="k">SET</span> <span class="nv">VARIABLE</span><span class="p">=</span>value </pre></div> <p>An environment variable is removed via: </p> <div class="mw-highlight mw-highlight-lang-batch mw-content-ltr" dir="ltr"><pre><span></span> <span class="k">SET</span> <span class="nv">VARIABLE</span><span class="p">=</span> </pre></div> <p>The <b><code>SET</code></b> command without any arguments displays all environment variables along with their values; <b><code>SET &quot;&#160;&quot;</code></b>, zero or more spaces, will include internal variables too. In <code>CMD.EXE</code>, it is possible to assign local variables that will not be global using the <b><code>SETLOCAL</code></b> command and <b><code>ENDLOCAL</code></b> to restore the environment. </p><p>Use the <a href="/wiki/Switch_(command_line)" class="mw-redirect" title="Switch (command line)">switch</a> <b><code>/?</code></b> to display the internal <a href="/wiki/Man_page" title="Man page">documentation</a>, or use the <a href="/wiki/Help_(command)#DOS" title="Help (command)">viewer</a> <b><code>help</code></b>: </p> <div class="mw-highlight mw-highlight-lang-batch mw-content-ltr" dir="ltr"><pre><span></span> <span class="k">SET</span> <span class="nv">/?</span> HELP SET <span class="k">SETLOCAL</span> /? HELP SETLOCAL </pre></div> <p><br /> In <a href="/wiki/PowerShell" title="PowerShell">PowerShell</a>, the assignment follows a syntax similar to Unix: </p> <div class="mw-highlight mw-highlight-lang-powershell mw-content-ltr" dir="ltr"><pre><span></span> <span class="nv">$env:VARIABLE</span> <span class="p">=</span> <span class="s2">&quot;VALUE&quot;</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=7" title="Edit section: Examples"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Examples of environment variables include: </p> <ul><li><code><a href="/wiki/PATH_(variable)" title="PATH (variable)">PATH</a></code>: a list of directory paths. When the <a href="/wiki/User_(computing)" title="User (computing)">user</a> types a command without providing the full path, this list is checked to see whether it contains a path that leads to the command.</li> <li><code>HOME</code> (<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a>) and <code>USERPROFILE</code> (Microsoft Windows): indicate where a user's <a href="/wiki/Home_directory" title="Home directory">home directory</a> is located in the <a href="/wiki/File_system" title="File system">file system</a>.</li> <li><code>HOME/{.AppName}</code> (<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a>) and <code>APPDATA\{DeveloperName\AppName}</code> (Microsoft Windows): for storing application settings. Many applications incorrectly use <code>USERPROFILE</code> for application settings in Windows: <code>USERPROFILE</code> should only be used in dialogs that allow user to choose between paths like <code>Documents/Pictures/Downloads/Music</code>; for programmatic purposes, <code>APPDATA</code> (for roaming application settings shared across multiple devices), <code>LOCALAPPDATA</code> (for local application settings) or <code>PROGRAMDATA</code> (for application settings shared between multiple OS users) should be used.<sup id="cite_ref-appdata_4-0" class="reference"><a href="#cite_note-appdata-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup></li> <li><code>TERM</code> (<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a>): specifies the type of <a href="/wiki/Computer_terminal" title="Computer terminal">computer terminal</a> or <a href="/wiki/Terminal_emulator" title="Terminal emulator">terminal emulator</a> being used (e.g., <code><a href="/wiki/Vt100" class="mw-redirect" title="Vt100">vt100</a></code> or <code><a href="/wiki/Dumb_terminal" class="mw-redirect" title="Dumb terminal">dumb</a></code>).</li> <li><code>PS1</code> (<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a>): specifies how the prompt is displayed in the <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a> and variants.</li> <li><code>MAIL</code> (<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a>): used to indicate where a user's mail is to be found.</li> <li><code>TEMP</code>: location where processes can store temporary files.</li></ul> <div class="mw-heading mw-heading2"><h2 id="True_environment_variables">True environment variables</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=8" title="Edit section: True environment variables"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Unix_2"><span class="anchor" id="UNIX-ENV"></span>Unix</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=9" title="Edit section: Unix"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><span class="anchor" id="$PATH"></span> </p> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/Path_(computing)" title="Path (computing)">Path (computing)</a></div> <dl><dt><code>$PATH</code></dt> <dd>Contains a colon-separated list of directories that the shell searches for commands that do not contain a slash in their name (commands with slashes are interpreted as file names to execute, and the shell attempts to execute the files directly). It is equivalent to the <a href="/wiki/DOS" title="DOS">DOS</a>, <a href="/wiki/OS/2" title="OS/2">OS/2</a> and <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Windows</a> <code><a href="#%PATH%">%PATH%</a></code> variable.</dd></dl> <dl><dt><span class="anchor" id="$HOME"></span><code>$HOME</code></dt> <dd>Contains the location of the user's <a href="/wiki/Home_directory" title="Home directory">home directory</a>. Although the current user's home directory can also be found out through the C-functions <code>getpwuid</code> and <code>getuid</code>, <code>$HOME</code> is often used for convenience in various shell scripts (and other contexts). Using the environment variable also gives the user the possibility to point to another directory.</dd></dl> <dl><dt><span class="anchor" id="$PWD"></span><code>$PWD</code></dt> <dd>This variable points to the current directory. Equivalent to the output of the command pwd when called without arguments.</dd></dl> <dl><dt><span class="anchor" id="$DISPLAY"></span><code>$DISPLAY</code></dt> <dd>Contains the identifier for the display that <a href="/wiki/X11" class="mw-redirect" title="X11">X11</a> programs should use by default.</dd></dl> <dl><dt><span class="anchor" id="$LD_LIBRARY_PATH"></span><code>$LD_LIBRARY_PATH</code></dt> <dd>On many Unix systems with a <a href="/wiki/Dynamic_linker" title="Dynamic linker">dynamic linker</a>, contains a colon-separated list of directories that the dynamic linker should search for <a href="/wiki/Shared_object" class="mw-redirect" title="Shared object">shared objects</a> when building a process image after <code>exec</code>, before searching in any other directories.</dd></dl> <dl><dt><span class="anchor" id="$LIBPATH"></span><code>$LIBPATH</code> or <code>$SHLIB_PATH</code></dt> <dd>Alternatives to <code>$LD_LIBRARY_PATH</code> typically used on older Unix versions.</dd></dl> <dl><dt><span class="anchor" id="$LANG"></span><span class="anchor" id="$LC_ALL"></span><span class="anchor" id="$LC_CTYPE"></span><span class="anchor" id="$LC_COLLATE"></span><span class="anchor" id="$LC_DATE"></span><code>$LANG, $LC_ALL, $LC_...</code></dt> <dd><code>$LANG</code> is used to set to the default <a href="/wiki/Locale_(computer_software)" title="Locale (computer software)">locale</a>. For example, if the locale values are <code>pt_BR</code>, then the language is set to (Brazilian) Portuguese and Brazilian practice is used where relevant. Different aspects of localization are controlled by individual <code>$LC_</code>-variables (<code>$LC_CTYPE</code>, <code>$LC_<a href="/wiki/Collation" title="Collation">COLLATE</a></code>, <code>$LC_DATE</code> etc.). <code>$LC_ALL</code> can be used to force the same locale for all aspects.</dd></dl> <dl><dt><span class="anchor" id="$TZ"></span><code>$TZ</code></dt> <dd>Refers to <a href="/wiki/Time_zone" title="Time zone">time zone</a>. It can be in several formats, either specifying the time zone itself or referencing a file (in <code>/usr/share/zoneinfo</code>).</dd></dl> <dl><dt><span class="anchor" id="$BROWSER"></span><code>$BROWSER</code></dt> <dd>Contains a colon-separated list of a user's <a href="/wiki/Web_browser" title="Web browser">web browser</a> preferences, for use by programs that need to allow the user to view content at a <a href="/wiki/URL" title="URL">URL</a>. The browsers in the list are intended to be attempted from first to last, stopping after the first one that succeeds. This arrangement allows for fallback behavior in different environments, e.g., in an <a href="/wiki/X_Window_System" title="X Window System">X11</a> environment, a graphical browser (such as <a href="/wiki/Firefox" title="Firefox">Firefox</a>) can be used, but in a console environment a terminal-base browser (such a <a href="/wiki/Lynx_(web_browser)" title="Lynx (web browser)">Lynx</a>) can be used. A <code>%s</code> token may be present to specify where the URL should be placed; otherwise the browser should be launched with the URL as the first argument.<sup id="cite_ref-ESR_2002_BROWSER_5-0" class="reference"><a href="#cite_note-ESR_2002_BROWSER-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-LWN_2001_BROWSER_6-0" class="reference"><a href="#cite_note-LWN_2001_BROWSER-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-PERL_ENV_BROWSER_7-0" class="reference"><a href="#cite_note-PERL_ENV_BROWSER-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-PYTHON_WEBBROWSER_8-0" class="reference"><a href="#cite_note-PYTHON_WEBBROWSER-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-DEBIAN_DFLT_WEB_BROWSER_9-0" class="reference"><a href="#cite_note-DEBIAN_DFLT_WEB_BROWSER-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <div class="mw-heading mw-heading3"><h3 id="DOS"><span class="anchor" id="DOS-ENV"></span>DOS</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=10" title="Edit section: DOS"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><span class="anchor" id="Pre-environment"></span><span class="anchor" id="System_environment"></span><span class="anchor" id="Master_environment"></span><span class="anchor" id="Local_environment"></span><span class="anchor" id="Pre-environment_variable"></span><span class="anchor" id="System_environment_variable"></span><span class="anchor" id="Master_environment_variable"></span><span class="anchor" id="Local_environment_variable"></span> Under DOS, the <i>master environment</i> is provided by the primary command processor, which inherits the <i>pre-environment</i> defined in <code>CONFIG.SYS</code> when first loaded. Its size can be configured through the <code>COMMAND /E:n</code> parameter between 160<sup id="cite_ref-4DOS_8.00_HELP_10-0" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> and 32767<sup id="cite_ref-4DOS_8.00_HELP_10-1" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> bytes. <i>Local environment</i> segments inherited to child processes are typically reduced down to the size of the contents they hold. Some command-line processors (like <a href="/wiki/4DOS" title="4DOS">4DOS</a>) allow to define a minimum amount of free environment space that will be available when launching secondary shells.<sup id="cite_ref-4DOS_8.00_HELP_10-2" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> While the content of environment variables remains unchanged upon storage, their names (without the "<code>%</code>") are always converted to uppercase, with the exception of <i>pre-environment variables</i> defined via the <code><a href="/wiki/CONFIG.SYS" title="CONFIG.SYS">CONFIG.SYS</a></code> directive <code><a href="/wiki/SET_(CONFIG.SYS_directive)" class="mw-redirect" title="SET (CONFIG.SYS directive)">SET</a></code> under <a href="/wiki/DR_DOS_6.0" class="mw-redirect" title="DR DOS 6.0">DR DOS 6.0</a> and higher<sup id="cite_ref-Paul_1997_NWDOSTIP_11-0" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_4DOSTIP_12-0" class="reference"><a href="#cite_note-Paul_1997_4DOSTIP-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> (and only with <code><a href="/wiki/SWITCHES_(CONFIG.SYS_directive)" class="mw-redirect" title="SWITCHES (CONFIG.SYS directive)">SWITCHES=/L</a></code> (for "allow lowercase names") under <a href="/wiki/DR-DOS_7.02" class="mw-redirect" title="DR-DOS 7.02">DR-DOS 7.02</a> and higher).<sup id="cite_ref-4DOS_8.00_HELP_10-3" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_OD-A3_13-0" class="reference"><a href="#cite_note-Paul_1997_OD-A3-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> In principle, <a href="/wiki/MS-DOS_7.0" class="mw-redirect" title="MS-DOS 7.0">MS-DOS 7.0</a> and higher also supports lowercase variable names (<code><a href="#windir">%windir%</a></code>), but provides no means for the user to define them. Environment variable names containing lowercase letters are stored in the environment just like normal environment variables, but remain invisible to most DOS software, since they are written to expect uppercase variables only.<sup id="cite_ref-4DOS_8.00_HELP_10-4" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_NWDOSTIP_11-1" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_4DOSTIP_12-1" class="reference"><a href="#cite_note-Paul_1997_4DOSTIP-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> Some command processors limit the maximum length of a variable name to 80 characters.<sup id="cite_ref-4DOS_8.00_HELP_10-5" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> While principally only limited by the size of the <i>environment segment</i>, some DOS and 16-bit Windows programs<sup id="cite_ref-4DOS_8.00_HELP_10-6" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-NB_ENVLEN128_14-0" class="reference"><a href="#cite_note-NB_ENVLEN128-14"><span class="cite-bracket">&#91;</span>nb 1<span class="cite-bracket">&#93;</span></a></sup> do not expect the contents of environment variables to exceed 128 characters. DR-DOS <code>COMMAND.COM</code> supports environment variables up to 255, <a href="/wiki/4DOS" title="4DOS">4DOS</a> even up to 512 characters.<sup id="cite_ref-4DOS_8.00_HELP_10-7" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> Since <code>COMMAND.COM</code> can be configured (via <code>/L:128..1024</code>) to support command lines up to 1024 characters internally under MS-DOS 7.0 and higher, environment variables should be expected to contain at least 1024 characters as well. In some versions of DR-DOS, the environment passed to drivers, which often do not need their environment after installation, can be shrunken or <a href="/wiki/Relocation_(computing)" title="Relocation (computing)">relocated</a> through <code>SETENV</code> or <code><a href="/wiki/INSTALL_(CONFIG.SYS_directive)" class="mw-redirect" title="INSTALL (CONFIG.SYS directive)">INSTALL[HIGH]</a></code>/<code><a href="/wiki/LOADHIGH" title="LOADHIGH">LOADHIGH</a></code> options <code>/Z</code> (zero environment), <code>/D[:<a href="/wiki/Load_drive" class="mw-redirect" title="Load drive">loaddrive</a>]</code> (substitute drive, e.g. <code>B:TSR.COM</code>) and <code>/E</code> (relocate environment above program) in order to minimize the driver's effectively resulting resident <a href="/wiki/Memory_footprint" title="Memory footprint">memory footprint</a>.<sup id="cite_ref-Paul_1997_SETENV_15-0" class="reference"><a href="#cite_note-Paul_1997_SETENV-15"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_OD-A3_13-1" class="reference"><a href="#cite_note-Paul_1997_OD-A3-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_NWDOSTIP_11-2" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_CTMOUSE_16-0" class="reference"><a href="#cite_note-Paul_2002_CTMOUSE-16"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-PTS-DOS_2000_17-0" class="reference"><a href="#cite_note-PTS-DOS_2000-17"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_COM_18-0" class="reference"><a href="#cite_note-Paul_2002_COM-18"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup> </p><p>In batch mode, non-existent environment variables are replaced by a zero-length string. </p><p><span class="anchor" id="Reserved_environment_variable"></span><i>Standard environment variables</i> or <i>reserved environment variables</i> include: </p> <dl><dt><span class="anchor" id="%APPEND%"></span><code>%APPEND%</code> (supported since DOS 3.3)</dt> <dd>This variable contains a semicolon-delimited list of directories in which to search for files. It is usually changed via the <code><a href="/wiki/APPEND_(DOS_command)" class="mw-redirect" title="APPEND (DOS command)">APPEND</a> /E</code> command, which also ensures that the directory names are converted into uppercase. Some DOS software actually expects the names to be stored in uppercase and the length of the list not to exceed 121<sup id="cite_ref-4DOS_8.00_HELP_10-8" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> characters, therefore the variable is best not modified via the <code><a href="/wiki/SET_(DOS_command)" class="mw-redirect" title="SET (DOS command)">SET</a></code> command. <a href="/wiki/Long_filename" title="Long filename">Long filenames</a> containing spaces or other special characters must not be quoted (<code>"</code>).</dd></dl> <dl><dt><span class="anchor" id="%CONFIG%"></span><code>%CONFIG%</code> (supported since <a href="/wiki/MS-DOS_6.0" class="mw-redirect" title="MS-DOS 6.0">MS-DOS 6.0</a> and <a href="/wiki/PC_DOS_6.1" class="mw-redirect" title="PC DOS 6.1">PC DOS 6.1</a>, also supported by <a href="/wiki/Datalight_ROM-DOS" class="mw-redirect" title="Datalight ROM-DOS">ROM-DOS</a><sup id="cite_ref-Datalight_2005_ROM-DOS_19-0" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup>)</dt> <dd>This variable holds the symbolic name of the currently chosen boot configuration. It is set by the <a href="/wiki/DOS_BIOS" class="mw-redirect" title="DOS BIOS">DOS BIOS</a> (<code><a href="/wiki/IO.SYS" title="IO.SYS">IO.SYS</a></code>, <code><a href="/wiki/IBMBIO.COM" title="IBMBIO.COM">IBMBIO.COM</a></code>, etc.) to the name defined by the corresponding <code><a href="/wiki/CONFIG.SYS" title="CONFIG.SYS">CONFIG.SYS</a></code> directive <code><a href="/wiki/MENUITEM_(CONFIG.SYS_directive)" class="mw-redirect" title="MENUITEM (CONFIG.SYS directive)">MENUITEM</a></code> before launching the primary command processor. Its main purpose is to allow further special cases in <code><a href="/wiki/AUTOEXEC.BAT" title="AUTOEXEC.BAT">AUTOEXEC.BAT</a></code> and similar batchjobs depending on the selected option at boot time. This can be emulated under DR-DOS by utilizing the <code>CONFIG.SYS</code> directive <code><a href="/wiki/SET_(CONFIG.SYS_directive)" class="mw-redirect" title="SET (CONFIG.SYS directive)">SET</a></code> like <code>SET CONFIG=1</code>.</dd></dl> <dl><dt><span class="anchor" id="%CMDLINE%"></span><code>%CMDLINE%</code> (introduced with <a href="/wiki/4DOS" title="4DOS">4DOS</a>, also supported since <a href="/wiki/MS-DOS_7.0" class="mw-redirect" title="MS-DOS 7.0">MS-DOS 7.0</a>)</dt> <dd>This variable contains the fully expanded text of the currently executing command line. It can be read by applications to detect the usage of and retrieve long command lines, since the traditional method to retrieve the command line arguments through the <a href="/wiki/Program_Segment_Prefix" title="Program Segment Prefix">PSP</a> (or related <a href="/wiki/Application_programming_interface" class="mw-redirect" title="Application programming interface">API</a> functions) is limited to 126 characters and is no longer available when <a href="/wiki/File_Control_Block" title="File Control Block">FCBs</a> get expanded or the default <a href="/wiki/Disk_Transfer_Area" class="mw-redirect" title="Disk Transfer Area">DTA</a> is used. While 4DOS supports longer command lines, <code>COMMAND.COM</code> still only supports a maximum of 126 characters at the prompt by default (unless overridden with <code>/U:128..255</code> to specify the size of the command line buffer), but nevertheless internal command lines can become longer through f.e. variable expansion (depending on <code>/L:128..1024</code> to specify the size of the internal buffer). In addition to the command-line length byte in the PSP, the PSP command line is normally limited by <a href="/wiki/ASCII_13" class="mw-redirect" title="ASCII 13">ASCII-13</a>, and command lines longer than 126 characters will typically be truncated by having an ASCII-13 inserted at position 127,<sup id="cite_ref-Paul_1997_4DOSTIP_12-2" class="reference"><a href="#cite_note-Paul_1997_4DOSTIP-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> but this cannot be relied upon in all scenarios.<sup id="cite_ref-Paul_1997_4DOSTIP_12-3" class="reference"><a href="#cite_note-Paul_1997_4DOSTIP-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-NB_CMDLINE_20-0" class="reference"><a href="#cite_note-NB_CMDLINE-20"><span class="cite-bracket">&#91;</span>nb 2<span class="cite-bracket">&#93;</span></a></sup> The variable will be suppressed for external commands invoked with a preceding <code>@</code>-symbol like in <code>@XCOPY ...</code> for backward compatibility and in order to minimize the size of the environment when loading non-relocating <a href="/wiki/Terminate-and-stay-resident_program" title="Terminate-and-stay-resident program">terminate-and-stay-resident programs</a>. Some beta versions of <a href="/wiki/Windows_Chicago" class="mw-redirect" title="Windows Chicago">Windows Chicago</a> used <code>%CMDLINE%</code> to store only the remainder of the command line excessing 126 characters instead of the complete command line.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-3" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_4DOSTIP_12-4" class="reference"><a href="#cite_note-Paul_1997_4DOSTIP-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%COMSPEC%"></span><code><a href="/wiki/COMSPEC" title="COMSPEC">%COMSPEC%</a></code> (supported since DOS 2.0)</dt> <dd>This variable contains the full <a href="/wiki/8.3_filename" title="8.3 filename">8.3</a> path to the <a href="/wiki/Command_processor" class="mw-redirect" title="Command processor">command processor</a>, typically <code>C:\<a href="/wiki/COMMAND.COM" title="COMMAND.COM">COMMAND.COM</a></code> or <code>C:\DOS\COMMAND.COM</code>. It must not contain <a href="/wiki/Long_filenames" class="mw-redirect" title="Long filenames">long filenames</a>, but under DR-DOS it may contain <a href="/wiki/FAT_file_password" class="mw-redirect" title="FAT file password">file</a> and <a href="/wiki/FAT_directory_password" class="mw-redirect" title="FAT directory password">directory passwords</a>. It is set up by the primary command processor to point to itself (typically reflecting the settings of the <code><a href="/wiki/CONFIG.SYS" title="CONFIG.SYS">CONFIG.SYS</a></code> directive <code><a href="/wiki/SHELL_(CONFIG.SYS_directive)" class="mw-redirect" title="SHELL (CONFIG.SYS directive)">SHELL</a></code>), so that the resident portion of the command processor can reload its transient portion from disk after the execution of larger programs. The value can be changed at runtime to reflect changes in the configuration, which would require the command processor to reload itself from other locations. The variable is also used when launching secondary shells.</dd></dl> <dl><dt><span class="anchor" id="%COPYCMD%"></span><code>%COPYCMD%</code> (supported since <a href="/wiki/MS-DOS_6.2" class="mw-redirect" title="MS-DOS 6.2">MS-DOS 6.2</a> and <a href="/wiki/PC_DOS_6.3" class="mw-redirect" title="PC DOS 6.3">PC DOS 6.3</a>, also supported by <a href="/wiki/Datalight_ROM-DOS" class="mw-redirect" title="Datalight ROM-DOS">ROM-DOS</a><sup id="cite_ref-Datalight_2005_ROM-DOS_19-1" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup>)</dt> <dd>Allows a user to specify the <code>/Y</code> switch (to assume "Yes" on queries) as the default for the <code><a href="/wiki/Copy_(command)" title="Copy (command)">COPY</a></code>, <code><a href="/wiki/XCOPY" title="XCOPY">XCOPY</a></code>, and <code><a href="/wiki/Move_(command)" title="Move (command)">MOVE</a></code> commands. A default of <code>/Y</code> can be overridden by supplying the <code>/-Y</code> switch on the command line. The <code>/Y</code> switch instructs the command to replace existing files without prompting for confirmation.</dd></dl> <dl><dt><span class="anchor" id="%DIRCMD%"></span><code>%DIRCMD%</code> (supported since <a href="/wiki/MS-DOS_5.0" class="mw-redirect" title="MS-DOS 5.0">MS-DOS 5.0</a> and <a href="/wiki/IBM_DOS_5.0" class="mw-redirect" title="IBM DOS 5.0">PC DOS 5.0</a>, also supported by <a href="/wiki/Datalight_ROM-DOS" class="mw-redirect" title="Datalight ROM-DOS">ROM-DOS</a><sup id="cite_ref-Datalight_2005_ROM-DOS_19-2" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup>)</dt> <dd>Allows a user to specify customized default parameters for the <code><a href="/wiki/Dir_(command)" title="Dir (command)">DIR</a></code> command, including file specifications. Preset default switches can be overridden by providing the negative switch on the command line. For example, if <code>%DIRCMD%</code> contains the <code>/W</code> switch, then it can be overridden by using <code>DIR /-W</code> at the command line. This is similar to the environment variable <code><a href="#%$DIR%">%$DIR%</a></code> under <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a><sup id="cite_ref-Kotulla_1987_Environment_21-0" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> and a facility to define default switches for <code>DIR</code> through its <code>/C</code> or <code>/R</code> switches under <a href="/wiki/DR-DOS" title="DR-DOS">DR-DOS</a> <code>COMMAND.COM</code>.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-4" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> <code>%DIRCMD%</code> is also supported by the external <code>SDIR.COM</code>/<code>DIR.COM</code> <a href="/wiki/Stacker_(disk_compression)" class="mw-redirect" title="Stacker (disk compression)">Stacker</a> commands under <a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a> and higher.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-5" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%LANG%"></span><code>%LANG%</code> (supported since <a href="/wiki/MS-DOS_7.0" class="mw-redirect" title="MS-DOS 7.0">MS-DOS 7.0</a>)</dt> <dd>This variable is supported by some tools to switch the locale for messages in multilingual issues.</dd></dl> <dl><dt><span class="anchor" id="%LANGSPEC%"></span><code>%LANGSPEC%</code> (supported since <a href="/wiki/MS-DOS_7.0" class="mw-redirect" title="MS-DOS 7.0">MS-DOS 7.0</a>)</dt> <dd>This variable is supported by some tools to switch the locale for messages in multilingual issues.</dd></dl> <dl><dt><span class="anchor" id="%NO_SEP%"></span><code>%NO_SEP%</code> (supported since <a href="/wiki/PC_DOS_6.3" class="mw-redirect" title="PC DOS 6.3">PC DOS 6.3</a> and <a href="/wiki/DR-DOS_7.07" class="mw-redirect" title="DR-DOS 7.07">DR-DOS 7.07</a>)</dt> <dd>This variable controls the display of <a href="/wiki/Decimal_separator#Digit_grouping" title="Decimal separator">thousands-separators</a> in messages of various commands. Issued by default, they can be suppressed by specifying <code>SET NO_SEP=ON</code> or <code>SET NO_SEP=1</code> under PC&#160;DOS. DR-DOS additionally allows to override the system's thousands-separator displayed as in f.e. <code>SET NO_SEP=.</code>.<sup id="cite_ref-4DOS_8.00_HELP_10-9" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%PATH%"></span><code><a href="/wiki/PATH_(environment_variable)" class="mw-redirect" title="PATH (environment variable)">%PATH%</a></code> (supported since DOS 2.0)</dt> <dd>This variable contains a semicolon-delimited list of directories in which the <a href="/wiki/Command_interpreter" class="mw-redirect" title="Command interpreter">command interpreter</a> will search for <a href="/wiki/Executable_file" class="mw-redirect" title="Executable file">executable files</a>. Equivalent to the Unix <code><a href="#$PATH">$PATH</a></code> variable (but some DOS and Windows applications also use the list to search for data files similar to <code><a href="#$LD_LIBRARY_PATH">$LD_LIBRARY_PATH</a></code> on Unix-like systems). It is usually changed via the <code><a href="/wiki/PATH_(DOS_command)" class="mw-redirect" title="PATH (DOS command)">PATH</a></code> (or <code>PATH /E</code> under <a href="/wiki/MS-DOS_6.0" class="mw-redirect" title="MS-DOS 6.0">MS-DOS 6.0</a>) command, which also ensures that the directory names are converted into uppercase. Some DOS software actually expects the names to be stored in uppercase and the length of the list not to exceed 123<sup id="cite_ref-4DOS_8.00_HELP_10-10" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> characters,<sup id="cite_ref-NB_ENVLEN128_14-1" class="reference"><a href="#cite_note-NB_ENVLEN128-14"><span class="cite-bracket">&#91;</span>nb 1<span class="cite-bracket">&#93;</span></a></sup> therefore the variable should better not be modified via the <code><a href="/wiki/SET_(DOS_command)" class="mw-redirect" title="SET (DOS command)">SET</a></code> command.<sup id="cite_ref-4DOS_8.00_HELP_10-11" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Long_filename" title="Long filename">Long filenames</a> containing spaces or other special characters must not be quoted (<code>"</code>). By default, the current directory is searched first, but some command-line processors like <a href="/wiki/4DOS" title="4DOS">4DOS</a> allow "<code>.</code>" (for "current directory") to be included in the list as well in order to override this search order; some DOS programs are incompatible with this extension.<sup id="cite_ref-4DOS_8.00_HELP_10-12" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%PROMPT%"></span><code>%PROMPT%</code> (supported since DOS 2.0)</dt> <dd>This variable contains a <code>$</code>-tokenized string defining the display of the <a href="/wiki/Prompt_(computing)" class="mw-redirect" title="Prompt (computing)">prompt</a>. It is usually changed via the <code><a href="/wiki/PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a></code> command.</dd></dl> <dl><dt><span class="anchor" id="%TEMP%"></span><span class="anchor" id="%TMP%"></span><code>%TEMP%</code> (and <code>%TMP%</code>)</dt> <dd>These variables contain the path to the directory where <a href="/wiki/Temporary_file" title="Temporary file">temporary files</a> should be stored. Operating system tools typically only use <code>%TEMP%</code>, whereas third-party programs also use <code>%TMP%</code>. Typically <code>%TEMP%</code> takes precedence over <code>%TMP%</code>.</dd></dl> <p>The <a href="/wiki/DR-DOS" title="DR-DOS">DR-DOS</a> family supports a number of additional <i>standard environment variables</i> including: </p> <dl><dt><span class="anchor" id="%BETA%"></span><code>%BETA%</code></dt> <dd>This variable contains an optional message displayed by some versions (including <a href="/wiki/DR_DOS_3.41" class="mw-redirect" title="DR DOS 3.41">DR DOS 3.41</a>) of <code>COMMAND.COM</code> at the startup of secondary shells.<sup id="cite_ref-Paul_2002_CLS_22-0" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%DRDOSCFG%"></span><span class="anchor" id="%NWDOSCFG%"></span><span class="anchor" id="%OPENDOSCFG%"></span><code>%DRDOSCFG%</code>/<code>%NWDOSCFG%</code>/<code>%OPENDOSCFG%</code></dt> <dd>This variable contains the directory<sup id="cite_ref-Caldera_1998_USER_23-0" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> (without trailing "<code>\</code>") where to search for <code>.INI</code> and <code>.CFG</code> configuration files (that is, DR-DOS application specific files like <code>TASKMGR.INI</code>, <code>TASKMAX.INI</code>, <code><a href="/wiki/VIEWMAX.INI" class="mw-redirect" title="VIEWMAX.INI">VIEWMAX.INI</a></code>, <code>FASTBACK.CFG</code> etc., class specific files like <code>COLORS.INI</code>, or global files like <code><a href="/wiki/DRDOS.INI" class="mw-redirect" title="DRDOS.INI">DRDOS.INI</a></code>, <code><a href="/wiki/NWDOS.INI" class="mw-redirect" title="NWDOS.INI">NWDOS.INI</a></code>, <code><a href="/wiki/OPENDOS.INI" class="mw-redirect" title="OPENDOS.INI">OPENDOS.INI</a></code>, or <code><a href="/wiki/DOS.INI" class="mw-redirect" title="DOS.INI">DOS.INI</a></code>), as used by the <code>INSTALL</code> and <code>SETUP</code> commands and various DR-DOS programs like <code>DISKOPT</code>, <code>DOSBOOK</code>, <code>EDIT</code>, <code>FBX</code>, <code>FILELINK</code>, <code>LOCK</code>, <code>SECURITY.OVL</code>/<code>NWLOGIN.EXE</code>, <code>SERNO</code>, <code>TASKMAX</code>, <code>TASKMGR</code>, <code><a href="/wiki/VIEWMAX" class="mw-redirect" title="VIEWMAX">VIEWMAX</a></code>, or <code>UNDELETE</code>.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-6" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> It must not contain <a href="/wiki/Long_filename" title="Long filename">long filenames</a>.</dd></dl> <dl><dt><span class="anchor" id="%DRCOMSPEC%"></span><code>%DRCOMSPEC%</code></dt> <dd>This variable optionally holds an alternative path to the command processor taking precedence over the path defined in the <code>%COMSPEC%</code> variable, optionally including <a href="/wiki/FAT_file_password" class="mw-redirect" title="FAT file password">file</a> and <a href="/wiki/FAT_directory_password" class="mw-redirect" title="FAT directory password">directory passwords</a>. Alternatively, it can hold a special value of "<code>ON</code>" or "<code>1</code>" in order to enforce the usage of the <code>%COMSPEC%</code> variable even in scenarios where the <code>%COMSPEC%</code> variable may point to the wrong command-line processor, for example, when running some versions of the DR-DOS <code><a href="/wiki/SYS_(command)" title="SYS (command)">SYS</a></code> command under a foreign operating system.<sup id="cite_ref-Paul_2017_24-0" class="reference"><a href="#cite_note-Paul_2017-24"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%DRSYS%"></span><code>%DRSYS%</code></dt> <dd>Setting this variable to "<code>ON</code>" or "<code>1</code>" will force some versions of the DR-DOS <code><a href="/wiki/SYS_(command)" title="SYS (command)">SYS</a></code> command to work under foreign operating systems instead of displaying a warning.<sup id="cite_ref-Paul_2017_24-1" class="reference"><a href="#cite_note-Paul_2017-24"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%FBP_USER%"></span><span class="anchor" id="FBP_USER"></span><code>%FBP_USER%</code></dt> <dd>Specifies the user name used by the <a href="/wiki/FastBack" title="FastBack">FastBack</a> command <code><a href="/wiki/FBX_(DOS_command)" class="mw-redirect" title="FBX (DOS command)">FBX</a></code> and <code>{user}<a href="/wiki/.FB" class="mw-redirect" title=".FB">.FB</a></code> configuration files under <a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a>.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-7" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%HOMEDIR%"></span><code>%HOMEDIR%</code></dt> <dd>This variable may contain the home directory under DR-DOS (including <a href="/wiki/DR_DOS_5.0" class="mw-redirect" title="DR DOS 5.0">DR DOS 5.0</a> and <a href="/wiki/DR_DOS_6.0" class="mw-redirect" title="DR DOS 6.0">6.0</a>).<sup id="cite_ref-Paul_1997_NWDOSTIP_11-8" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_CLS_22-1" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%INFO%"></span><code>%INFO%</code></dt> <dd>In some versions of DR-DOS <code>COMMAND.COM</code> this variable defines the string displayed by the <code>$I</code> token of the <code><a href="/wiki/PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a></code> command.<sup id="cite_ref-Paul_2002_CLS_22-2" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> It can be used, for example, to inform the user how to exit secondary shells.</dd></dl> <dl><dt><span class="anchor" id="%LOGINNAME%"></span><code>%LOGINNAME%</code></dt> <dd>In some versions of DR-DOS <code>COMMAND.COM</code> this variable defines the user name displayed by the <code>$U</code> token of the <code><a href="/wiki/PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a></code> command, as set up by f.e. login scripts for <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a>.<sup id="cite_ref-4DOS_8.00_HELP_10-13" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_1997_NWDOSTIP_11-9" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_CLS_22-3" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> See also the similarly named pseudo-variable <code><a href="#%LOGIN_NAME%">%LOGIN_NAME%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%MDOS_EXEC%"></span><code>%MDOS_EXEC%</code></dt> <dd>This variable can take the values "<code>ON</code>" or "<code>OFF</code>" under <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a>. If enabled, the operating system permits applications to shell out to secondary shells with the <a href="/w/index.php?title=DOS_Program_Area&amp;action=edit&amp;redlink=1" class="new" title="DOS Program Area (page does not exist)">DOS Program Area</a> (DPA) freed in order to have maximum DOS memory available for secondary applications instead of running them in the same domain as under DOS.<sup id="cite_ref-CCI_1997_HELP_25-0" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-CCI_1997_PRINTDOC_26-0" class="reference"><a href="#cite_note-CCI_1997_PRINTDOC-26"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%NOCHAR%"></span><code>%NOCHAR%</code></dt> <dd>This variable can be used to define the character displayed by some commands in messages for "No" in <code>[Y,N]</code> queries, thereby overriding the current system default (typically "<code>N</code>" in English versions of DR-DOS). If it contains a string, only the first character, uppercased, will be taken. Some commands also support a command line parameter <code>/Y</code> to automatically assume "Yes" on queries, thereby suppressing such prompts. If, however, the parameter <code>/Y:yn</code> is used to specify the "Yes"/"No" characters (thereby overriding any <code>%NOCHAR%</code> setting), queries are not suppressed. See also the related <code>CONFIG.SYS</code> directive <code><a href="/wiki/NOCHAR_(CONFIG.SYS_directive)" class="mw-redirect" title="NOCHAR (CONFIG.SYS directive)">NOCHAR</a></code> and the environment variable <code><a href="#%YESCHAR%">%YESCHAR%</a></code>.<sup id="cite_ref-Paul_2017_24-2" class="reference"><a href="#cite_note-Paul_2017-24"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%NOSOUND%"></span><code>%NOSOUND%</code></dt> <dd>Setting this variable to "<code>ON</code>" or "<code>1</code>" will disable default beeps issued by some DR-DOS commands in certain situations such as to inform the user of the completion of some operation, that user interaction is required, or when a wrong key was pressed. Command line options to specifically enable certain beeps will override this setting.</dd></dl> <dl><dt><span class="anchor" id="%OS%"></span><code>%OS%</code></dt> <dd>This variable contains the name of the operating system in order to distinguish between different DOS-related operating systems of <a href="/wiki/Digital_Research" title="Digital Research">Digital Research</a>-origin in batch jobs and applications.<sup id="cite_ref-Caldera_1998_USER_23-1" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> Known values include "<code>DOSPLUS</code>" (<a href="/wiki/DOS_Plus_1.2" class="mw-redirect" title="DOS Plus 1.2">DOS Plus 1.2</a> in DOS emulation), "<code>CPCDOS 4.1</code>" (DOS Plus 1.2 in <a href="/wiki/CP/M" title="CP/M">CP/M</a> emulation), "<code>DRDOS</code>" (<a href="/wiki/DR_DOS_3.31" class="mw-redirect" title="DR DOS 3.31">DR DOS 3.31</a>-<a href="/wiki/DR_DOS_6.0" class="mw-redirect" title="DR DOS 6.0">6.0</a>, <a href="/wiki/DR_DOS_Panther" class="mw-redirect" title="DR DOS Panther">DR DOS Panther</a>, <a href="/wiki/DR_DOS_StarTrek" class="mw-redirect" title="DR DOS StarTrek">DR DOS StarTrek</a>, <a href="/wiki/DR-DOS_7.02" class="mw-redirect" title="DR-DOS 7.02">DR-DOS 7.02</a><sup id="cite_ref-Caldera_1998_USER_23-2" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup>-<a href="/wiki/DR-DOS_7.05" class="mw-redirect" title="DR-DOS 7.05">7.05</a>), "<code>EZDOS</code>" (<a href="/wiki/EZ-DOS_3.41" class="mw-redirect" title="EZ-DOS 3.41">EZ-DOS 3.41</a>), "<code>PALMDOS</code>" and "<code>NetWare PalmDOS</code>" (<a href="/wiki/PalmDOS_1.0" class="mw-redirect" title="PalmDOS 1.0">PalmDOS 1.0</a>), "<code>NWDOS</code>" (<a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a>), "<code>NWDOS7</code>" (Novell DOS 7 Beta), "<code>OPENDOS</code>" (<a href="/wiki/Caldera_OpenDOS_7.01" class="mw-redirect" title="Caldera OpenDOS 7.01">Caldera OpenDOS 7.01</a>, <a href="/wiki/Caldera_DR-OpenDOS_7.02" class="mw-redirect" title="Caldera DR-OpenDOS 7.02">Caldera DR-OpenDOS 7.02</a>), "<code>CDOS</code>" (<a href="/wiki/Concurrent_DOS" class="mw-redirect" title="Concurrent DOS">Concurrent DOS</a>, <a href="/wiki/Concurrent_DOS_XM" class="mw-redirect" title="Concurrent DOS XM">Concurrent DOS XM</a>), "<code>CPCDOS</code>" (<a href="/wiki/Concurrent_PC_DOS" class="mw-redirect" title="Concurrent PC DOS">Concurrent PC DOS</a>), "<code>CDOS386</code>" (<a href="/wiki/Concurrent_DOS_386" class="mw-redirect" title="Concurrent DOS 386">Concurrent DOS 386</a>), "<code>DRMDOS</code>" (<a href="/wiki/DR_Multiuser_DOS" class="mw-redirect" title="DR Multiuser DOS">DR Multiuser DOS</a>), "<code>MDOS</code>" (<a href="/wiki/CCI_Multiuser_DOS" class="mw-redirect" title="CCI Multiuser DOS">CCI Multiuser DOS</a>),<sup id="cite_ref-CCI_1997_HELP_25-1" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> "<code>IMSMDOS</code>" (<a href="/wiki/IMS_Multiuser_DOS" class="mw-redirect" title="IMS Multiuser DOS">IMS Multiuser DOS</a>), "<code>REAL32</code>" (<a href="/wiki/REAL/32" class="mw-redirect" title="REAL/32">REAL/32</a>).<sup id="cite_ref-Paul_1997_NWDOSTIP_11-10" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_OS_27-0" class="reference"><a href="#cite_note-Paul_2002_OS-27"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup> MS-DOS <code><a href="/wiki/INTERSVR_(DOS_command)" class="mw-redirect" title="INTERSVR (DOS command)">INTERSVR</a></code> looks for a value of "<code>DRDOS</code>" as well.<sup id="cite_ref-Paul_2002_OS_27-1" class="reference"><a href="#cite_note-Paul_2002_OS-27"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup> See also the identically named environment variable <code><a href="#OS">%OS%</a></code> later introduced in the <a href="/wiki/Windows_NT_family" class="mw-redirect" title="Windows NT family">Windows NT family</a>.</dd></dl> <dl><dt><span class="anchor" id="%PEXEC%"></span><code>%PEXEC%</code></dt> <dd>In some versions of DR-DOS this variable defines the command executed by the <code>$X</code> token of the <code><a href="/wiki/PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a></code> command before <code>COMMAND.COM</code> displays the prompt after returning from external program execution.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-11" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Caldera_1998_USER_23-3" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%SWITCHAR%"></span><code>%SWITCHAR%</code></dt> <dd>This variable defines the <a href="/wiki/SwitChar" class="mw-redirect" title="SwitChar">SwitChar</a> to be used for argument parsing by some DR-DOS commands. If defined, it overrides the system's current SwitChar setting. The only accepted characters are "<code>/</code>" (DOS style), "<code>-</code>" (Unix style) and "<code>[</code>" (CP/M style). See also the related <code>CONFIG.SYS</code> directive <code><a href="/wiki/SWITCHAR_(CONFIG.SYS_directive)" class="mw-redirect" title="SWITCHAR (CONFIG.SYS directive)">SWITCHAR</a></code> (to set the system's SwitChar setting) and the <code><a href="#%/%">%/%</a></code> <i>system information variable</i> in some issues of DR-DOS <code>COMMAND.COM</code> (to retrieve the current setting for portable batchjobs).</dd></dl> <dl><dt><span class="anchor" id="%TASKMGRWINDIR%"></span><code>%TASKMGRWINDIR%</code></dt> <dd>This variable specifies the directory, where the <a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a> <code><a href="/wiki/SYSTEM.INI" title="SYSTEM.INI">SYSTEM.INI</a></code> to be used by the DR-DOS <code>TASKMGR</code> multitasker is located, overriding the default procedure to locate the file.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-12" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%VER%"></span><code>%VER%</code></dt> <dd>This variable contains the version of the operating system in order to distinguish between different versions of DR-DOS in batch jobs and in the display of the <code><a href="/wiki/Ver_(command)" title="Ver (command)">VER</a></code> command.<sup id="cite_ref-Caldera_1998_USER_23-4" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> It is also used for the <code>$V</code> token of the <code><a href="/wiki/PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a></code> command and affects the value returned by the <i>system information variable</i> <code><a href="#%OS_VERSION%">%OS_VERSION%</a></code>. Known values include "<code>1.0</code>" (<a href="/wiki/PalmDOS_1.0" class="mw-redirect" title="PalmDOS 1.0">PalmDOS 1.0</a>), "<code>1.2</code>" (<a href="/wiki/DOS_Plus_1.2" class="mw-redirect" title="DOS Plus 1.2">DOS Plus 1.2</a> in DOS emulation), "<code>2.0</code>" (<a href="/wiki/Concurrent_DOS_386_2.0" class="mw-redirect" title="Concurrent DOS 386 2.0">Concurrent DOS 386 2.0</a>), "<code>3.0</code>" (<a href="/wiki/Concurrent_DOS_386_3.0" class="mw-redirect" title="Concurrent DOS 386 3.0">Concurrent DOS 386 3.0</a>), "<code>3.31</code>" (<a href="/wiki/DR_DOS_3.31" class="mw-redirect" title="DR DOS 3.31">DR DOS 3.31</a>), "<code>3.32</code>" (<a href="/wiki/DR_DOS_3.32" class="mw-redirect" title="DR DOS 3.32">DR DOS 3.32</a>), "<code>3.33</code>" (<a href="/wiki/DR_DOS_3.33" class="mw-redirect" title="DR DOS 3.33">DR DOS 3.33</a>), "<code>3.34</code>" (<a href="/wiki/DR_DOS_3.34" class="mw-redirect" title="DR DOS 3.34">DR DOS 3.34</a>), "<code>3.35</code>" (<a href="/wiki/DR_DOS_3.35" class="mw-redirect" title="DR DOS 3.35">DR DOS 3.35</a>), "<code>3.40</code>" (<a href="/wiki/DR_DOS_3.40" class="mw-redirect" title="DR DOS 3.40">DR DOS 3.40</a>), "<code>3.41</code>" (<a href="/wiki/DR_DOS_3.41" class="mw-redirect" title="DR DOS 3.41">DR DOS 3.41</a>, <a href="/wiki/EZ-DOS_3.41" class="mw-redirect" title="EZ-DOS 3.41">EZ-DOS 3.41</a>), "<code>3.41T</code>" (<a href="/wiki/DR_DOS_3.41T" class="mw-redirect" title="DR DOS 3.41T">DR DOS 3.41T</a>), "<code>4.1</code>" (<a href="/wiki/Concurrent_PC_DOS_4.1" class="mw-redirect" title="Concurrent PC DOS 4.1">Concurrent PC DOS 4.1</a>), "<code>5.0</code>" (<a href="/wiki/DR_DOS_5.0" class="mw-redirect" title="DR DOS 5.0">DR DOS 5.0</a>, <a href="/wiki/DR_Multiuser_DOS_5.0" class="mw-redirect" title="DR Multiuser DOS 5.0">DR Multiuser DOS 5.0</a>), "<code>5.1</code>" (<a href="/wiki/Novell_DR_Multiuser_DOS_5.1" class="mw-redirect" title="Novell DR Multiuser DOS 5.1">Novell DR Multiuser DOS 5.1</a>), "<code>6.0</code>" (<a href="/wiki/DR_Concurrent_DOS_XM_6.0" class="mw-redirect" title="DR Concurrent DOS XM 6.0">DR Concurrent DOS XM 6.0</a>, <a href="/wiki/DR_DOS_6.0" class="mw-redirect" title="DR DOS 6.0">DR DOS 6.0</a>), "<code>6.2</code>" (<a href="/wiki/DR_Concurrent_DOS_XM_6.2" class="mw-redirect" title="DR Concurrent DOS XM 6.2">DR Concurrent DOS XM 6.2</a>), "<code>7</code>" (<a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a>, <a href="/wiki/Caldera_OpenDOS_7.01" class="mw-redirect" title="Caldera OpenDOS 7.01">Caldera OpenDOS 7.01</a>, <a href="/wiki/DR-DOS_7.02" class="mw-redirect" title="DR-DOS 7.02">DR-DOS 7.02</a>-<a href="/wiki/DR-DOS_7.05" class="mw-redirect" title="DR-DOS 7.05">7.05</a>), "<code>7.00</code>" (<a href="/wiki/CCI_Multiuser_DOS_7.00" class="mw-redirect" title="CCI Multiuser DOS 7.00">CCI Multiuser DOS 7.00</a>), "<code>7.07</code>" (<a href="/wiki/DR-DOS_7.07" class="mw-redirect" title="DR-DOS 7.07">DR-DOS 7.07</a>), "<code>7.1</code>" (<a href="/wiki/IMS_Multiuser_DOS_7.1" class="mw-redirect" title="IMS Multiuser DOS 7.1">IMS Multiuser DOS 7.1</a>), "<code>7.21</code>" (<a href="/wiki/CCI_Multiuser_DOS_7.21" class="mw-redirect" title="CCI Multiuser DOS 7.21">CCI Multiuser DOS 7.21</a>),<sup id="cite_ref-CCI_1997_HELP_25-2" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> "<code>7.22</code>" (<a href="/wiki/CCI_Multiuser_DOS_7.22" class="mw-redirect" title="CCI Multiuser DOS 7.22">CCI Multiuser DOS 7.22</a>) etc.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-13" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_OS_27-2" class="reference"><a href="#cite_note-Paul_2002_OS-27"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-CCI_1997_HELP_25-3" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%YESCHAR%"></span><code>%YESCHAR%</code></dt> <dd>This variable can be used to define the character displayed by some commands in messages for "Yes" in <code>[Y,N]</code> queries, thereby overriding the current system default (typically "<code>Y</code>" in English versions of DR-DOS). If it contains a string, only the first character, uppercased, will be taken. Some commands also support a command line parameter <code>/Y</code> to automatically assume "Yes" on queries, thereby suppressing such prompts. If, however, the parameter <code>/Y:y</code> is used to specify the "Yes" character (thereby overriding any <code>%YESCHAR%</code> setting), queries are not suppressed. See also the related <code>CONFIG.SYS</code> directive <code><a href="/wiki/YESCHAR_(CONFIG.SYS_directive)" class="mw-redirect" title="YESCHAR (CONFIG.SYS directive)">YESCHAR</a></code> and the environment variable <code><a href="#%NOCHAR%">%NOCHAR%</a></code>.<sup id="cite_ref-Paul_2017_24-3" class="reference"><a href="#cite_note-Paul_2017-24"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%$CLS%"></span><code>%$CLS%</code></dt> <dd>This variable defines the control sequence to be sent to the console driver to clear the screen when the <code><a href="/wiki/CLS_(command)" title="CLS (command)">CLS</a></code> command is issued, thereby overriding the internal default ("<code>←[2J</code>" under DR-DOS, "<code>←E</code>" under <a href="/wiki/DOS_Plus_1.2" class="mw-redirect" title="DOS Plus 1.2">DOS Plus 1.2</a> on Amstrad machines<sup id="cite_ref-Kotulla_1987_Environment_21-1" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> as well as under <a href="/wiki/Concurrent_DOS" class="mw-redirect" title="Concurrent DOS">Concurrent DOS</a>, <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a>, and <a href="/wiki/REAL/32" class="mw-redirect" title="REAL/32">REAL/32</a> for <a href="/wiki/VT52" title="VT52">VT52</a> terminals, or "<code>←+</code>" under Multiuser DOS for <a href="/wiki/ASCII" title="ASCII">ASCII</a> terminals).<sup id="cite_ref-CCI_1997_HELP_25-4" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> If the variable is not defined and no <code><a href="/wiki/ANSI.SYS" title="ANSI.SYS">ANSI.SYS</a></code> console driver is detected, the DR-DOS <code>COMMAND.COM</code> will directly clear the screen via <code>INT 10h/AH=00h</code> <a href="/wiki/PC_BIOS" class="mw-redirect" title="PC BIOS">BIOS</a> function, like MS-DOS/PC&#160;DOS <code>COMMAND.COM</code> does. A special <code>\nnn</code>-notation for <a href="/wiki/Octal_number" class="mw-redirect" title="Octal number">octal numbers</a> is supported to allow the definition of special characters like ESC (<a href="/wiki/ASCII_27" class="mw-redirect" title="ASCII 27">ASCII-27</a> = "←" = 1Bh = 33o), as f.e. in <code>SET $CLS=\033[2J</code>. To send the backslash ("<code>\</code>") itself, it can be doubled "<code>\\</code>".<sup id="cite_ref-Paul_1997_NWDOSTIP_11-14" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2002_CLS_22-4" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-CCI_1997_HELP_25-5" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%$DIR%"></span><code>%$DIR%</code></dt> <dd>Supported by <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a> accepting the values "L" (long) or "W" (wide) to change the default layout of directory listings with <a href="/wiki/Dir_(command)" title="Dir (command)">DIR</a>. Can be overridden using the command line options <code>/L</code> or <code>/W</code>.<sup id="cite_ref-Paul_2002_CLS_22-5" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-2" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> See also the similar environment variable <code><a href="#%DIRCMD%">%DIRCMD%</a></code> and the <code>DIR</code> options <code>/C</code> and <code>/R</code> of the DR-DOS COMMAND.COM.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-15" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%$PAGE%"></span><code>%$PAGE%</code></dt> <dd>Supported by <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a> accepting the values "<code>ON</code>" or "<code>OFF</code>" for pagination control. Setting this to "<code>ON</code>" has the same affect as adding <code>/P</code> to commands supporting it (like <a href="/wiki/Dir_(command)" title="Dir (command)">DIR</a> or <a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a>).<sup id="cite_ref-Paul_2002_CLS_22-6" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-3" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%$LENGTH%"></span><code>%$LENGTH%</code></dt> <dd>Used by <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a> to define the screen length of the console in lines. This is used to control in a portable way when the screen output should be temporarily halted until a key is pressed in conjunction with the <code>/P</code> option supported by various commands or with automatic pagnination.<sup id="cite_ref-Paul_2002_CLS_22-7" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-4" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variables <code><a href="#%$WIDTH%">%$WIDTH%</a></code> and <code><a href="#%DIRSIZE%">%DIRSIZE%</a></code> as well as the similar pseudo-variable <code><a href="#%_ROWS%">%_ROWS%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$WIDTH%"></span><code>%$WIDTH%</code></dt> <dd>Used by <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a> to define the screen width of the console in columns. This is used to control in a portable way the formatting of the screen output of commands like <code><a href="/wiki/Dir_(command)" title="Dir (command)">DIR</a> /W</code> or <code><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a> filename</code>.<sup id="cite_ref-Paul_2002_CLS_22-8" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-5" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variables <code><a href="#%$LENGTH%">%$LENGTH%</a></code> and <code><a href="#%DIRSIZE%">%DIRSIZE%</a></code> as well as the similar pseudo-variable <code><a href="#%_COLUMNS%">%_COLUMNS%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$SLICE%"></span><code>%$SLICE%</code></dt> <dd>Used by <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a> accepting a numerical value to control the foreground/background time slicing of multitasking programs.<sup id="cite_ref-Paul_2002_CLS_22-9" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-6" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> See also the DOS Plus command <code><a href="/wiki/SLICE_(DOS_command)" class="mw-redirect" title="SLICE (DOS command)">SLICE</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$ON%"></span><code>%$ON%</code></dt> <dd>This variable can hold an optional control sequence to switch text highlighting, reversion or colorization on. It is used to emphasize or otherwise control the display of the file names in commands like <code><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a> wildcard</code>, for example <code>SET $ON=\033[1m</code> with <a href="/wiki/ANSI.SYS" title="ANSI.SYS">ANSI.SYS</a> loaded or <code>SET $ON=\016</code> for an IBM or <a href="/wiki/ESC/P" title="ESC/P">ESC/P</a> printer. For the special <code>\nnn</code> octal notation supported, see <code><a href="#%$CLS%">%$CLS%</a></code>.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-16" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-7" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> While the variable is undefined by default under DOS Plus and DR-DOS, the <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a> default for an <a href="/wiki/ASCII" title="ASCII">ASCII</a> terminal equals <code>SET $ON=\033p</code>.<sup id="cite_ref-Paul_2002_CLS_22-10" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-CCI_1997_HELP_25-6" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variable <code><a href="#%$OFF%">%$OFF%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$OFF%"></span><code>%$OFF%</code></dt> <dd>This variable can hold an optional control sequence to switch text highlighting, reversion or colorization off. It is used to return to the normal output after the display of file names in commands like <code><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a> wildcard</code>, for example <code>SET $OFF=\033[0m</code> with <a href="/wiki/ANSI.SYS" title="ANSI.SYS">ANSI.SYS</a> loaded or <code>SET $OFF=\024</code> for an IBM or <a href="/wiki/ESC/P" title="ESC/P">ESC/P</a> printer. For the special <code>\nnn</code> octal notation supported, see <code><a href="#%$CLS%">%$CLS%</a></code>.<sup id="cite_ref-Paul_1997_NWDOSTIP_11-17" class="reference"><a href="#cite_note-Paul_1997_NWDOSTIP-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Kotulla_1987_Environment_21-8" class="reference"><a href="#cite_note-Kotulla_1987_Environment-21"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> While the variable is undefined by default under DOS Plus and DR-DOS, the <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a> default for an <a href="/wiki/ASCII" title="ASCII">ASCII</a> terminal equals <code>SET $OFF=\033q</code>.<sup id="cite_ref-Paul_2002_CLS_22-11" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-CCI_1997_HELP_25-7" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variable <code><a href="#%$ON%">%$ON%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$HEADER%"></span><code>%$HEADER%</code></dt> <dd>This variable can hold an optional control sequence issued before the output of the file contents in commands like <code><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a></code> under DR-DOS 7.02 and higher. It can be used for highlighting, pagination or formatting, f.e. when sending the output to a printer, i.e. <code>SET $HEADER=\017</code> for an IBM or <a href="/wiki/ESC/P" title="ESC/P">ESC/P</a> printer. For the special <code>\nnn</code> octal notation supported, see <code><a href="#%$CLS%">%$CLS%</a></code>.<sup id="cite_ref-Paul_2002_CLS_22-12" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variable <code><a href="#%$FOOTER%">%$FOOTER%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%$FOOTER%"></span><code>%$FOOTER%</code></dt> <dd>This variable can hold an optional control sequence issued after the output of the file contents in commands like <code><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">TYPE</a></code> under DR-DOS 7.02 and higher. It is used to return to the normal output format, i.e. <code>SET $FOOTER=\022\014</code> in the printer example above. For the special <code>\nnn</code> octal notation supported, see <code><a href="#%$CLS%">%$CLS%</a></code>.<sup id="cite_ref-Paul_2002_CLS_22-13" class="reference"><a href="#cite_note-Paul_2002_CLS-22"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> See also the related environment variable <code><a href="#%$HEADER%">%$HEADER%</a></code>.</dd></dl> <p><a href="/wiki/Datalight_ROM-DOS" class="mw-redirect" title="Datalight ROM-DOS">Datalight ROM-DOS</a> supports a number of additional <i>standard environment variables</i> as well including: </p> <dl><dt><span class="anchor" id="%DIRSIZE%"></span><code>%DIRSIZE%</code></dt> <dd>This variable is used to define non-standard screen sizes <code>rows[,cols]</code> for <code><a href="/wiki/DIR_(DOS_command)" class="mw-redirect" title="DIR (DOS command)">DIR</a></code> options <code>/P</code> and <code>/W</code> (similar to <code><a href="#%$LENGTH%">%$LENGTH%</a></code> and <code><a href="#%$WIDTH%">%$WIDTH%</a></code> under DOS Plus).<sup id="cite_ref-Datalight_2005_ROM-DOS_19-3" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%NEWFILE%"></span><code>%NEWFILE%</code></dt> <dd>This variable is automatically set to the first parameter given to the CONFIG.SYS directive <a href="/wiki/NEWFILE_(CONFIG.SYS_directive)" class="mw-redirect" title="NEWFILE (CONFIG.SYS directive)">NEWFILE</a>.<sup id="cite_ref-Datalight_2005_ROM-DOS_19-4" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <p><span class="anchor" id="%TZ%"></span><span class="anchor" id="%COMM%"></span><span class="anchor" id="%SOCKETS%"></span><span class="anchor" id="%HTTP_DIR%"></span><span class="anchor" id="%HOSTNAME%"></span><span class="anchor" id="%FTPDIR%"></span><code>%TZ%</code>, <code>%COMM%</code>, <code>%SOCKETS%</code>, <code>%HTTP_DIR%</code>, <code>%HOSTNAME%</code> and <code>%FTPDIR%</code> are also used by ROM-DOS.<sup id="cite_ref-Datalight_2005_ROM-DOS_19-5" class="reference"><a href="#cite_note-Datalight_2005_ROM-DOS-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="OS/2"><span id="OS.2F2"></span><span class="anchor" id="OS/2-ENV"></span>OS/2</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=11" title="Edit section: OS/2"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <dl><dt><span class="anchor" id="BEGINLIBPATH"></span><code>%BEGINLIBPATH%</code></dt> <dd>Contains a semicolon-separated list of directories which are searched for <a href="/wiki/Dynamic-link_library" title="Dynamic-link library">DLLs</a> <i>before</i> the directories given by the <code><a href="/wiki/LIBPATH" class="mw-redirect" title="LIBPATH">%LIBPATH%</a></code> variable (which is set during system startup with the special <a href="/wiki/CONFIG.SYS" title="CONFIG.SYS">CONFIG.SYS</a> directive <code><a href="/wiki/LIBPATH_(CONFIG.SYS_directive)" class="mw-redirect" title="LIBPATH (CONFIG.SYS directive)">LIBPATH</a></code>). It is possible to specify relative directories here, including "<code>.</code>" for the current working directory. See also the related environment variable <code><a href="#ENDLIBPATH">%ENDLIBPATH%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="ENDLIBPATH"></span><code>%ENDLIBPATH%</code></dt> <dd>a list of directories to be searched for <a href="/wiki/Dynamic-link_library" title="Dynamic-link library">DLLs</a> like <code><a href="#BEGINLIBPATH">%BEGINLIBPATH%</a></code>, but searched <i>after</i> the list of directories in <code><a href="/wiki/LIBPATH" class="mw-redirect" title="LIBPATH">%LIBPATH%</a></code>.</dd></dl> <div class="mw-heading mw-heading3"><h3 id="Windows"><span class="anchor" id="WIN-ENV"></span>Windows</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=12" title="Edit section: Windows"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>These environment variables refer to locations of critical operating system resources, and as such generally are not user-dependent.<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup> </p> <dl><dt><span class="anchor" id="APPDATA"></span><code>%APPDATA%</code></dt> <dd>Contains the full path to the <i><a href="/wiki/Special_folder" title="Special folder">Application Data</a></i> directory of the logged-in user. Does not work on Windows NT 4.0 SP6 UK.</dd></dl> <dl><dt><span class="anchor" id="LOCALAPPDATA"></span><code>%LOCALAPPDATA%</code></dt> <dd>This variable is the temporary files of <i>Applications</i>. Its uses include storing of <a href="/wiki/Theme_(computing)" title="Theme (computing)">desktop themes</a>, <a href="/wiki/Windows_error_reporting" class="mw-redirect" title="Windows error reporting">Windows error reporting</a>, caching and profiles of web browsers.</dd></dl> <dl><dt><span class="anchor" id="ComSpec"></span><span class="anchor" id="COMSPEC"></span><code>%<a href="/wiki/ComSpec" class="mw-redirect" title="ComSpec">ComSpec</a>%</code>/<code>%<a href="/wiki/COMSPEC" title="COMSPEC">COMSPEC</a>%</code></dt> <dd>The <code>%ComSpec%</code> variable contains the full path to the command processor; on the Windows NT family of operating systems, this is <a href="/wiki/Cmd.exe" title="Cmd.exe">cmd.exe</a>, while on <a href="/wiki/Windows_9x" title="Windows 9x">Windows 9x</a>, <code>%COMSPEC%</code> is <a href="/wiki/COMMAND.COM" title="COMMAND.COM">COMMAND.COM</a>.</dd></dl> <dl><dt><span class="anchor" id="OS"></span><code>%OS%</code></dt> <dd>The <code>%OS%</code> variable contains a symbolic name of the operating system family to distinguish between differing feature sets in <a href="/wiki/Batchjob" class="mw-redirect" title="Batchjob">batchjobs</a>. It resembles an identically named environment variable <code><a href="#%OS%">%OS%</a></code> found in all DOS-related operating systems of <a href="/wiki/Digital_Research" title="Digital Research">Digital Research</a>-origin like Concurrent DOS, <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a>, REAL/32, <a href="/wiki/DOS_Plus" title="DOS Plus">DOS Plus</a>, <a href="/wiki/DR_DOS" class="mw-redirect" title="DR DOS">DR DOS</a>, Novell DOS and OpenDOS. <code>%OS%</code> always holds the string "<code>Windows_NT</code>" on the <a href="/wiki/Windows_NT_family" class="mw-redirect" title="Windows NT family">Windows NT family</a>.<sup id="cite_ref-Ten_XP_29-0" class="reference"><a href="#cite_note-Ten_XP-29"><span class="cite-bracket">&#91;</span>27<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="Path"></span><span class="anchor" id="PATH"></span><code>%PATH%</code></dt> <dd>This variable contains a semicolon-delimited (do not put spaces in between) list of directories in which the command interpreter will search for an executable file that matches the given command. Environment variables that represent paths may be nested within the <code>%PATH%</code> variable, but only at one level of indirection. If this sub-path environment variable itself contains an environment variable representing a path, <code>%PATH%</code> will not expand properly in the variable substitution. Equivalent to the <a href="/wiki/Unix" title="Unix">Unix</a> <code><a href="#$PATH">$PATH</a></code> variable.</dd></dl> <dl><dt><span class="anchor" id="PROCESSOR_ARCHITECTURE"></span><span class="anchor" id="PROCESSOR_ARCHITEW6432"></span><span class="anchor" id="PROCESSOR_IDENTIFIER"></span><span class="anchor" id="PROCESSOR_LEVEL"></span><span class="anchor" id="PROCESSOR_REVISION"></span><code>%PROCESSOR_ARCHITECTURE%</code>, <code>%PROCESSOR_ARCHITEW6432%</code>, <code>%PROCESSOR_IDENTIFIER%</code>, <code>%PROCESSOR_LEVEL%</code>, <code>%PROCESSOR_REVISION%</code></dt> <dd>These variables contain details of the <a href="/wiki/CPU" class="mw-redirect" title="CPU">CPU</a>; they are set during system installation.</dd></dl> <dl><dt><span class="anchor" id="PUBLIC"></span><code>%PUBLIC%</code></dt> <dd>The <code>%PUBLIC%</code> variable (introduced with Vista) points to the <i>Public</i> (pseudo) user profile directory "<code>C:\Users\Public</code>".</dd></dl> <dl><dt><span class="anchor" id="ProgramFiles"></span><span class="anchor" id="ProgramFiles(x86)"></span><span class="anchor" id="ProgramW6432"></span><code>%ProgramFiles%</code>, <code>%ProgramFiles(x86)%</code>, <code>%ProgramW6432%</code></dt> <dd>The <code>%ProgramFiles%</code> variable points to the <i>Program Files</i> directory, which stores all the installed programs of Windows and others. The default on English-language systems is "<code>C:\Program Files</code>". In 64-bit editions of Windows (XP, 2003, Vista), there are also <code>%ProgramFiles(x86)%</code>, which defaults to "<code>C:\Program Files (x86)</code>", and <code>%ProgramW6432%</code>, which defaults to "<code>C:\Program Files</code>". The <code>%ProgramFiles%</code> itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by <a href="/wiki/WoW64" title="WoW64">Windows-on-Windows 64-bit</a> redirection<sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">&#91;</span>28<span class="cite-bracket">&#93;</span></a></sup>).</dd></dl> <dl><dt><span class="anchor" id="CommonProgramFiles"></span><span class="anchor" id="CommonProgramFiles(x86)"></span><span class="anchor" id="CommonProgramW6432"></span><code>%CommonProgramFiles%</code>, <code>%CommonProgramFiles(x86)%</code>, <code>%CommonProgramW6432%</code></dt> <dd>This variable points to the <i>Common Files</i> subdirectory of the <i>Program Files</i> directory. The default on English-language systems is "<code>C:\Program Files\Common Files</code>". In 64-bit editions of Windows (XP, 2003, Vista), there are also <code>%ProgramFiles(x86)%</code>, which defaults to "<code>C:\Program Files (x86)</code>", and <code>%ProgramW6432%</code>, which defaults to "<code>C:\Program Files</code>". The <code>%ProgramFiles%</code> itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by <a href="/wiki/WoW64" title="WoW64">Windows-on-Windows 64-bit</a> redirection).</dd></dl> <dl><dt><span class="anchor" id="SystemDrive"></span><code>%OneDrive%</code></dt> <dd>The <code>%OneDrive%</code> variable is a special system-wide environment variable found on Windows NT and its derivatives. Its value is the path of where (if installed and setup) the Onedrive directory is located. The value of <code>%OneDrive%</code> is in most cases "<code>C:\Users\{Username}\OneDrive\</code>".</dd></dl> <dl><dt><span class="anchor" id="SystemDrive"></span><code>%SystemDrive%</code></dt> <dd>The <code>%SystemDrive%</code> variable is a special system-wide environment variable found on Windows NT and its derivatives. Its value is the drive upon which the system directory was placed. The value of <code>%SystemDrive%</code> is in most cases "<code>C:</code>".</dd></dl> <dl><dt><span class="anchor" id="SystemRoot"></span><code>%SystemRoot%</code></dt> <dd>The <code>%SystemRoot%</code> variable is a special system-wide environment variable found on the Windows NT family of operating systems. Its value is the location of the system directory, including the drive and path. The drive is the same as <code>%SystemDrive%</code> and the default path on a clean installation depends upon the version of the operating system. By default: <ul><li><a href="/wiki/Windows_XP" title="Windows XP">Windows XP</a> and newer versions use "<code>\WINDOWS</code>".</li> <li><a href="/wiki/Windows_2000" title="Windows 2000">Windows 2000</a>, <a href="/wiki/Windows_NT_4.0" title="Windows NT 4.0">NT 4.0</a> and <a href="/wiki/Windows_NT_3.1" title="Windows NT 3.1">NT 3.1</a> use "<code>\WINNT</code>".</li> <li><a href="/wiki/Windows_NT_3.5" title="Windows NT 3.5">Windows NT 3.5</a> and <a href="/wiki/Windows_NT_3.51" title="Windows NT 3.51">NT 3.51</a> uses "<code>\WINNT35</code>".</li> <li><a href="/wiki/Windows_NT_4.0_Terminal_Server" class="mw-redirect" title="Windows NT 4.0 Terminal Server">Windows NT 4.0 Terminal Server</a> uses "<code>\WTSRV</code>".</li></ul></dd></dl> <dl><dt><span class="anchor" id="windir"></span><code>%windir%</code></dt> <dd>This variable points to the <i>Windows</i> directory. (On the Windows NT family of operating systems, it is identical to the <code>%SystemRoot%</code> variable). <a href="/wiki/Windows_95" title="Windows 95">Windows 95</a>–<a href="/wiki/Windows_98" title="Windows 98">98</a> and <a href="/wiki/Windows_ME" class="mw-redirect" title="Windows ME">Windows ME</a> are, by default, installed in "<code>C:\Windows</code>". For other versions of Windows, see the <code>%SystemRoot%</code> entry above.</dd></dl> <p><i>User management variables</i><sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="Is this an official name used in Microsoft literature? If not, we should not italicize it and use the official name instead. (August 2014)">citation needed</span></a></i>&#93;</sup> store information related to resources and settings owned by various <a href="/wiki/User_profile" title="User profile">user profiles</a> within the system. As a general rule, these variables do not refer to critical system resources or locations that are necessary for the OS to run. </p> <dl><dt><span class="anchor" id="ALLUSERSPROFILE"></span><span class="anchor" id="PROGRAMDATA"></span><code>%ALLUSERSPROFILE%</code> (<code>%PROGRAMDATA%</code> since Windows Vista)</dt> <dd>This variable expands to the full path to the <i>All Users</i> profile directory. This profile contains resources and settings that are used by all system accounts. <a href="/wiki/Shortcut_(computing)" title="Shortcut (computing)">Shortcut</a> links copied to the <i>All Users</i>\' <i>Start menu</i> or <i>Desktop</i> directories will appear in every user's <i>Start menu</i> or <i><a href="/wiki/Desktop_metaphor" title="Desktop metaphor">Desktop</a></i>, respectively.</dd></dl> <dl><dt><span class="anchor" id="USERDOMAIN"></span><code>%USERDOMAIN%</code></dt> <dd>The name of the <i><a href="/wiki/Workgroup_(computer_networking)" title="Workgroup (computer networking)">Workgroup</a></i> or <i><a href="/wiki/Windows_Server_domain" class="mw-redirect" title="Windows Server domain">Windows Domain</a></i> to which the current user belongs. The related variable, <code>%LOGONSERVER%</code>, holds the <a href="/wiki/Hostname" title="Hostname">hostname</a> of the server that authenticated the current user's login credentials (name and password). For home PCs and PCs in a workgroup, the authenticating server is usually the PC itself. For PCs in a Windows domain, the authenticating server is a <a href="/wiki/Domain_controller" title="Domain controller">domain controller</a> (a primary domain controller, or PDC, in Windows NT 4-based domains).</dd></dl> <dl><dt><span class="anchor" id="USERPROFILE"></span><code>%USERPROFILE%</code></dt> <dd>A special system-wide environment variable found on Windows NT and its derivatives. Its value is the location of the current user's profile directory, in which is found that user's HKCU registry hive (<code>NTUSER</code>). Users can also use the <code>%USERNAME%</code> variable to determine the active users login identification.</dd></dl> <p><i>Optional System variables</i><sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="Is this an official name used in Microsoft literature? If not, we should not italicize it and use the official name instead. (August 2014)">citation needed</span></a></i>&#93;</sup> are not explicitly specified by default but can be used to modify the default behavior of certain built-in console commands. These variables also do not need to be explicitly specified as command line arguments. </p> <div class="mw-heading mw-heading4"><h4 id="Default_values">Default values</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=13" title="Edit section: Default values"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The following tables shows typical default values of certain environment variables under English versions of Windows as they can be retrieved under <code><a href="/wiki/CMD_(Windows)" class="mw-redirect" title="CMD (Windows)">CMD</a></code>. </p><p>(Some of these variables are also defined when running <code>COMMAND.COM</code> under Windows, but differ in certain important details: Under <code>COMMAND.COM</code>, the names of environment variable are always uppercased. Some, but not all variables contain short <a href="/wiki/8.3_filename" title="8.3 filename">8.3</a> rather than <a href="/wiki/Long_file_name" class="mw-redirect" title="Long file name">long file names</a>. While some variables present in the <code>CMD</code> environment are missing, there are also some variables specific to the <code>COMMAND</code> environment.) </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Locale specific </th> <th>Windows XP (CMD) </th> <th>Windows Vista and later (CMD) </th></tr> <tr> <td><style data-mw-deduplicate="TemplateStyles:r886049734">.mw-parser-output .monospaced{font-family:monospace,monospace}</style><span class="monospaced">%ALLUSERSPROFILE%</span><sup id="cite_ref-Schulz_2014_Ordner_31-0" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>C:\Documents and Settings\All Users </td> <td>C:\ProgramData<sup id="cite_ref-Schulz_2014_Ordner_31-1" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%APPDATA%</span><sup id="cite_ref-Schulz_2014_Ordner_31-2" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>C:\Documents and Settings\{username}\Application Data </td> <td>C:\Users\{username}\AppData\Roaming<sup id="cite_ref-Schulz_2014_Ordner_31-3" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%CommonProgramFiles%</span><sup id="cite_ref-Schulz_2014_Ordner_31-4" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>C:\Program Files\Common Files </td> <td>C:\Program Files\Common Files<sup id="cite_ref-Schulz_2014_Ordner_31-5" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%CommonProgramFiles(x86)%</span><sup id="cite_ref-Schulz_2014_Ordner_31-6" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>C:\Program Files (x86)\Common Files <i>(only in 64-bit version)</i> </td> <td>C:\Program Files (x86)\Common Files <i>(only in 64-bit version)</i><sup id="cite_ref-Schulz_2014_Ordner_31-7" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%CommonProgramW6432%</span><sup id="cite_ref-Schulz_2014_Ordner_31-8" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%CommonProgramW6432%</span> <i>(not supported, not replaced by any value)</i> </td> <td>C:\Program Files\Common Files <i>(only in 64-bit version)</i><sup id="cite_ref-Schulz_2014_Ordner_31-9" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%COMPUTERNAME%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>{computername} </td> <td>{computername} </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ComSpec%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>C:\Windows\System32\cmd.exe </td> <td>C:\Windows\System32\cmd.exe </td></tr> <tr class="anchor" id="%HOMEDRIVE%"> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%HOMEDRIVE%</span><sup id="cite_ref-Schulz_2014_Ordner_31-10" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>C: </td> <td>C:<sup id="cite_ref-Schulz_2014_Ordner_31-11" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr class="anchor" id="%HOMEPATH%"> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%HOMEPATH%</span><sup id="cite_ref-Schulz_2014_Ordner_31-12" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>\Documents and Settings\{username} </td> <td>\Users\{username}<sup id="cite_ref-Schulz_2014_Ordner_31-13" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%LOCALAPPDATA%</span><sup id="cite_ref-Schulz_2014_Ordner_31-14" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%LOCALAPPDATA%</span> <i>(not supported, not replaced by any value)</i> </td> <td>C:\Users\{username}\AppData\Local<sup id="cite_ref-Schulz_2014_Ordner_31-15" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%LOGONSERVER%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>\\{domain_logon_server} </td> <td>\\{domain_logon_server} </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PATH%</span> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} </td> <td>C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PATHEXT%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH </td> <td>.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramData%</span><sup id="cite_ref-Schulz_2014_Ordner_31-16" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramData%</span> <i>(not supported, not replaced by any value)</i> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\ProgramData<sup id="cite_ref-Schulz_2014_Ordner_31-17" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramFiles%</span><sup id="cite_ref-Schulz_2014_Ordner_31-18" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Program Files </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Program Files<sup id="cite_ref-Schulz_2014_Ordner_31-19" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramFiles(x86)%</span><sup id="cite_ref-Schulz_2014_Ordner_31-20" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Program Files (x86) <i>(only in 64-bit version)</i> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Program Files (x86) <i>(only in 64-bit version)</i><sup id="cite_ref-Schulz_2014_Ordner_31-21" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramW6432%</span><sup id="cite_ref-Schulz_2014_Ordner_31-22" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%ProgramW6432%</span> <i>(not supported, not replaced by any value)</i> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Program Files <i>(only in 64-bit version)</i><sup id="cite_ref-Schulz_2014_Ordner_31-23" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PROMPT%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>Code for current command prompt format, usually $P$G </td> <td>Code for current command prompt format, usually $P$G </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PSModulePath%</span> </td> <td> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PSModulePath%</span> <i>(not supported, not replaced by any value)</i> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemRoot%</span>\system32\WindowsPowerShell\v1.0\Modules\ </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PUBLIC%</span><sup id="cite_ref-Schulz_2014_Ordner_31-24" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%PUBLIC%</span> <i>(not supported, not replaced by any value)</i> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Users\Public<sup id="cite_ref-Schulz_2014_Ordner_31-25" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span><sup id="cite_ref-Schulz_2014_Ordner_31-26" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>C: </td> <td>C:<sup id="cite_ref-Schulz_2014_Ordner_31-27" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemRoot%</span><sup id="cite_ref-Schulz_2014_Ordner_31-28" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>The Windows directory, usually C:\Windows, formerly C:\WINNT </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Windows<sup id="cite_ref-Schulz_2014_Ordner_31-29" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TEMP%</span><sup id="cite_ref-Schulz_2014_Ordner_31-30" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TMP%</span><sup id="cite_ref-Schulz_2014_Ordner_31-31" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Documents and Settings\{username}\Local Settings\Temp </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemRoot%</span>\TEMP (for system environment variables <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TMP%</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TEMP%</span>), <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%USERPROFILE%</span>\AppData\Local\Temp<sup id="cite_ref-Schulz_2014_Ordner_31-32" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> (for user environment variables <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TMP%</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%TEMP%</span>) </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%USERDOMAIN%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>{userdomain} </td> <td>{userdomain} </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%USERNAME%</span> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>{username} </td> <td>{username} </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%USERPROFILE%</span><sup id="cite_ref-Schulz_2014_Ordner_31-33" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Documents and Settings\{username} </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Users\{username}<sup id="cite_ref-Schulz_2014_Ordner_31-34" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%windir%</span><sup id="cite_ref-Schulz_2014_Ordner_31-35" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\WINDOWS </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">%SystemDrive%</span>\Windows<sup id="cite_ref-Schulz_2014_Ordner_31-36" class="reference"><a href="#cite_note-Schulz_2014_Ordner-31"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> </td></tr></tbody></table> <p>In this list, there is no environment variable that refers to the location of the user's <i>My Documents</i> directory, so there is no standard method for setting a program's home directory to be the <i>My Documents</i> directory. </p> <div class="mw-heading mw-heading2"><h2 id="Pseudo-environment_variables">Pseudo-environment variables</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=14" title="Edit section: Pseudo-environment variables"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The command processors in DOS and Windows also support pseudo-environment variables. These are values that are fetched like environment variables, but are not truly stored in the environment but computed when requested. </p> <div class="mw-heading mw-heading3"><h3 id="DOS_2"><span class="anchor" id="DOS-PSEUDOENV"></span>DOS</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=15" title="Edit section: DOS"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><span class="anchor" id="Replacement_parameter"></span><span class="anchor" id="Replaceable_parameter"></span><span class="anchor" id="Replacement_variable"></span><span class="anchor" id="Batch_file_parameter"></span>Besides true environment variables, which are statically stored in the environment until changed or deleted, a number of pseudo-environment variables exist for batch processing. </p><p>The so-called <i>replacement parameters</i> or <i>replaceable parameters</i> (Microsoft / IBM terminology) aka <i>replacement variables</i> (Digital Research / Novell / Caldera terminology)<sup id="cite_ref-Caldera_1998_USER_23-5" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> or <i><a href="/wiki/Batch_file_parameter" class="mw-redirect" title="Batch file parameter">batch file parameters</a></i> (JP Software terminology)<sup id="cite_ref-4DOS_8.00_HELP_10-14" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> <code>%1</code>..<code>%9</code> and <code>%0</code> can be used to retrieve the calling parameters of a batchjob, see <code><a href="/wiki/SHIFT_(DOS_command)" class="mw-redirect" title="SHIFT (DOS command)">SHIFT</a></code>. In batchjobs, they can be retrieved just like environment variables, but are not actually stored in the environment. </p><p><span class="anchor" id="System_information_variable"></span><span class="anchor" id="Internal_variable"></span> Some command-line processors (like <a href="/wiki/DR-DOS" title="DR-DOS">DR-DOS</a> <code>COMMAND.COM</code>,<sup id="cite_ref-Caldera_1998_USER_23-6" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a> <code>MDOS.COM</code>/<code><a href="/wiki/TMP.EXE" class="mw-redirect" title="TMP.EXE">TMP.EXE</a></code> (Terminal Message Process), JP Software <a href="/wiki/4DOS" title="4DOS">4DOS</a>, <a href="/wiki/4OS2" title="4OS2">4OS2</a>, <a href="/wiki/4NT_(shell)" class="mw-redirect" title="4NT (shell)">4NT</a>, <a href="/wiki/Take_Command_(command_line_interpreter)" class="mw-redirect" title="Take Command (command line interpreter)">Take Command</a> and Windows <a href="/wiki/Cmd.exe" title="Cmd.exe">cmd.exe</a>) support a type of pseudo-environment variables named <i>system information variables</i> (Novell / Caldera terminology)<sup id="cite_ref-Caldera_1998_USER_23-7" class="reference"><a href="#cite_note-Caldera_1998_USER-23"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> or <i>internal variables</i> (JP Software terminology),<sup id="cite_ref-4DOS_8.00_HELP_10-15" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> which can be used to retrieve various possibly dynamic, but read-only information about the running system in batch jobs. The returned values represent the status of the system in the moment these variables are queried; that is, reading them multiple times in a row may return different values even within the same command; querying them has no direct effect on the system. Since they are not stored in the environment, they are not listed by <a href="/wiki/SET_(DOS_command)" class="mw-redirect" title="SET (DOS command)">SET</a> and do not exist for external programs to retrieve. If a true environment variable of the same name is defined, it takes precedence over the corresponding variable until the environment variable is deleted again. They are not case-sensitive. While almost all such variables are prefixed with an <a href="/wiki/Underscore" title="Underscore">underscore</a> ("<code>_</code>") by 4DOS etc. by convention (f.e. <code><a href="#%_SECOND%">%_SECOND%</a></code>),<sup id="cite_ref-4DOS_8.00_HELP_10-16" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> they are not under DR-DOS <code>COMMAND.COM</code> (f.e. <code><a href="#%OS_VERSION%">%OS_VERSION%</a></code>). </p><p><span class="anchor" id="Variable_function"></span>In addition, 4DOS, 4OS2, 4NT, and Take Command also support so called <i>variable functions</i>,<sup id="cite_ref-4DOS_8.00_HELP_10-17" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> including user-definable ones. They work just like <i>internal variables</i>, but can take optional parameters (f.e. <code>%@EVAL[]%</code>) and may even change the system status depending on their function. </p><p><i>System information variables</i> supported by DR-DOS <code>COMMAND.COM</code>: </p> <dl><dt><span class="anchor" id="%AM_PM%"></span><code>%AM_PM%</code></dt> <dd>This pseudo-variable returns the ante- or post-midday status of the current time. The returned string depends on the locale-specific version of DR-DOS, f.e. "<code>am</code>" or "<code>pm</code>" in the English version. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%DAY%"></span><span class="anchor" id="DAY%"></span><code>%DAY%</code></dt> <dd>This pseudo-variable returns the days of the current date in a 2-digit format with leading zeros, f.e. "<code>01</code>".."<code>31</code>". See also the similar pseudo-variable <code><a href="#%_DAY%">%_DAY%</a></code>. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%DAY_OF_WEEK%"></span><code>%DAY_OF_WEEK%</code></dt> <dd>This pseudo-variable returns the day name of the week in a 3-character format. The returned string depends on the locale-specific version of DR-DOS, f.e. "<code>Sun</code>", "<code>Mon</code>", "<code>Tue</code>", "<code>Wed</code>", "<code>Thu</code>", "<code>Fri</code>", or "<code>Sat</code>" in the English version. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%ERRORLEVEL%"></span><code>%ERRORLEVEL%</code></dt> <dd>In <code>COMMAND.COM</code> of DR-DOS 7.02 and higher, this pseudo-variable returns the last error level returned by an external program or the <code><a href="/wiki/RETURN_(DOS_command)" class="mw-redirect" title="RETURN (DOS command)">RETURN</a></code> command, f.e. "<code>0</code>".."<code>255</code>".<sup id="cite_ref-Paul_1997_BATTIPS_32-0" class="reference"><a href="#cite_note-Paul_1997_BATTIPS-32"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-FD_2003_Errorlevel_33-0" class="reference"><a href="#cite_note-FD_2003_Errorlevel-33"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup> See also the identically named pseudo-variable <code><a href="#ERRORLEVEL">%ERRORLEVEL%</a></code> under Windows and the <code><a href="/wiki/IF_ERRORLEVEL_(DOS_command)" class="mw-redirect" title="IF ERRORLEVEL (DOS command)">IF ERRORLEVEL</a></code> conditional command.</dd></dl> <dl><dt><span class="anchor" id="%ERRORLVL%"></span><code>%ERRORLVL%</code></dt> <dd>In DR-DOS 7.02 and higher, this pseudo-variable returns the last error level in a 3-digit format with leading zeros, f.e. "<code>000</code>".."<code>255</code>".<sup id="cite_ref-Paul_1997_BATTIPS_32-1" class="reference"><a href="#cite_note-Paul_1997_BATTIPS-32"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-FD_2003_Errorlevel_33-1" class="reference"><a href="#cite_note-FD_2003_Errorlevel-33"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup> Under <a href="/wiki/Multiuser_DOS" title="Multiuser DOS">Multiuser DOS</a>, this is a true environment variable automatically updated by the shell to the return code of exiting programs.<sup id="cite_ref-CCI_1997_HELP_25-8" class="reference"><a href="#cite_note-CCI_1997_HELP-25"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> See also the related pseudo-variable <code><a href="#%ERRORLEVEL%">%ERRORLEVEL%</a></code> under DR-DOS and the <code><a href="/wiki/IF_ERRORLEVEL_(DOS_command)" class="mw-redirect" title="IF ERRORLEVEL (DOS command)">IF ERRORLEVEL</a></code> command.</dd></dl> <dl><dt><span class="anchor" id="%GREETING_TIME%"></span><code>%GREETING_TIME%</code></dt> <dd>This pseudo-variable returns the 3-level day greeting time. The returned string depends on the locale-specific version of DR-DOS, f.e. "<code>morning</code>", "<code>afternoon</code>", or "<code>evening</code>" in the English version. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%HOUR%"></span><code>%HOUR%</code></dt> <dd>This pseudo-variable returns the hours of the current time in 12-hour format without leading zeros, f.e. "<code>1</code>".."<code>12</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%HOUR24%"></span><code>%HOUR24%</code></dt> <dd>This pseudo-variable returns the hours of the current time in 24-hour format in a 2-digit format with leading zeros, f.e. "<code>00</code>".."<code>23</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. See also the similar pseudo-variable <code><a href="#%_HOUR%">%_HOUR%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%MINUTE%"></span><code>%MINUTE%</code></dt> <dd>This pseudo-variable returns the minutes of the current time in a 2-digit format with leading zeros, f.e "<code>00</code>".."<code>59</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. See also the similar pseudo-variable <code><a href="#%_MINUTE%">%_MINUTE%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%MONTH%"></span><code>%MONTH%</code></dt> <dd>This pseudo-variable returns the months of the current date in a 2-digit format with leading zeros, f.e. "<code>01</code>".."<code>12</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. See also the similar pseudo-variable <code><a href="#%_MONTH%">%_MONTH%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%MONTH_NAME%"></span><code>%MONTH_NAME%</code></dt> <dd>This pseudo-variable returns the month name of the current date. The returned string depends on the locale-specific version of DR-DOS, f.e. "<code>January</code>", "<code>February</code>", "<code>March</code>", "<code>April</code>", "<code>May</code>", "<code>June</code>", "<code>July</code>", "<code>August</code>", "<code>September</code>", "<code>October</code>", or "<code>December</code>" in the English version. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%NDAY_OF_WEEK%"></span><code>%NDAY_OF_WEEK%</code></dt> <dd>This pseudo-variable returns the number of day of the current week, f.e. "<code>1</code>".."<code>7</code>" (with "<code>1</code>" for Sunday). It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%OS_VERSION%"></span><code>%OS_VERSION%</code></dt> <dd>This pseudo-variable returns the version of the operating system depending on the current setting of the environment variable <code><a href="#%VER%">%VER%</a></code>. If <code>%VER%</code> is not defined, <code>%OS_VERSION%</code> returns "<code>off</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts, which may return versions also for non-DR-DOS versions of DOS.</dd></dl> <dl><dt><span class="anchor" id="%SECOND%"></span><code>%SECOND%</code></dt> <dd>This pseudo-variable returns the seconds of the current time in a 2-digit format with leading zeros, f.e. "<code>00</code>".."<code>59</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. See also the similar pseudo-variable <code><a href="#%_SECOND%">%_SECOND%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%SHORT_YEAR%"></span><code>%SHORT_YEAR%</code></dt> <dd>This pseudo-variable returns the year of the current date in a 2-digit format with leading zeros, f.e. "<code>93</code>".."<code>99</code>", "<code>00</code>".."<code>92</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%YEAR%"></span><span class="anchor" id="%_YEAR%"></span><code>%YEAR%</code> and <code>%_YEAR%</code></dt> <dd>Supported since <a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a>, the <code>%YEAR%</code> pseudo-variable returns the year of the current date in a 4-digit format, f.e. "<code>1980</code>".."<code>2099</code>". It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. DR-DOS 7.02 and higher added <code>%_YEAR%</code> for compatibility with <a href="/wiki/4DOS" title="4DOS">4DOS</a>, returning the same value.<sup id="cite_ref-4DOS_8.00_HELP_10-18" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup></dd></dl> <dl><dt><span class="anchor" id="%/%"></span><code>%/%</code></dt> <dd>In <code>COMMAND.COM</code> of DR-DOS 7.02 and higher, this pseudo-variable returns the current <a href="/wiki/SwitChar" class="mw-redirect" title="SwitChar">SwitChar</a> setting of the system, either "<code>/</code>" (DOS style) or "<code>-</code>" (Unix style).<sup id="cite_ref-Caldera_1998_DELTREE101_34-0" class="reference"><a href="#cite_note-Caldera_1998_DELTREE101-34"><span class="cite-bracket">&#91;</span>32<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Caldera_1998_NEW703_35-0" class="reference"><a href="#cite_note-Caldera_1998_NEW703-35"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup> See also the related <code>CONFIG.SYS</code> directive <a href="/wiki/SWITCHAR_(CONFIG.SYS_directive)" class="mw-redirect" title="SWITCHAR (CONFIG.SYS directive)">SWITCHAR</a> and the environment variable <code><a href="#%SWITCHAR%">%SWITCHAR%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_CODEPAGE%"></span><code>%_CODEPAGE%</code></dt> <dd>This pseudo-variable returns the systems' current <a href="/wiki/Code_page" title="Code page">code page</a> ("<code>1</code>".."<code>65533</code>"), f.e. "<code><a href="/wiki/Codepage_437" class="mw-redirect" title="Codepage 437">437</a></code>", "<code><a href="/wiki/Codepage_850" class="mw-redirect" title="Codepage 850">850</a></code>", "<code><a href="/wiki/Codepage_858" class="mw-redirect" title="Codepage 858">858</a></code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-19" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the <code><a href="/wiki/CHCP_(DOS_command)" class="mw-redirect" title="CHCP (DOS command)">CHCP</a></code> command.</dd></dl> <dl><dt><span class="anchor" id="%_COLUMNS%"></span><code>%_COLUMNS%</code></dt> <dd>This pseudo-variable returns the current number of screen columns depending on the display mode, f.e. "<code>40</code>", "<code>80</code>", "<code>132</code>", etc. This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-20" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also a similar environment variable <code><a href="#%$WIDTH%">%$WIDTH%</a></code> under DOS Plus.</dd></dl> <dl><dt><span class="anchor" id="%_COUNTRY%"></span><code>%_COUNTRY%</code></dt> <dd>This pseudo-variable returns the systems' current <a href="/wiki/List_of_country_calling_codes" title="List of country calling codes">country code</a> ("<code>1</code>".."<code>65534</code>"), f.e. "<code>1</code>" for USA, "<code>44</code>" for UK, "<code>49</code>" for Germany, "<code>20049</code>" with <a href="/wiki/ISO_8601" title="ISO 8601">ISO 8601</a>, "<code>21049</code>" with ISO 8601 and <a href="/wiki/Euro_currency" class="mw-redirect" title="Euro currency">Euro</a> support.<sup id="cite_ref-Caldera_1998_NEW703_35-1" class="reference"><a href="#cite_note-Caldera_1998_NEW703-35"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Paul_2001_COUNTRY_36-0" class="reference"><a href="#cite_note-Paul_2001_COUNTRY-36"><span class="cite-bracket">&#91;</span>34<span class="cite-bracket">&#93;</span></a></sup> This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-21" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the <code>CONFIG.SYS</code> directive <code><a href="/wiki/COUNTRY_(CONFIG.SYS_directive)" class="mw-redirect" title="COUNTRY (CONFIG.SYS directive)">COUNTRY</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_DAY%"></span><code>%_DAY%</code></dt> <dd>This pseudo-variable returns the days of the current date without leading zeros, f.e. "<code>1</code>".."<code>31</code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-22" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the similar pseudo-variable <code><a href="#DAY%">%DAY%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_HOUR%"></span><code>%_HOUR%</code></dt> <dd>This pseudo-variable returns the hours of the current time in 24-hour format without leading zeros, f.e. "<code>0</code>".."<code>23</code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-23" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the similar pseudo-variable <code><a href="#%HOUR24%">%HOUR24%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_MINUTE%"></span><code>%_MINUTE%</code></dt> <dd>This pseudo-variable returns the minutes of the current time without leading zeros, f.e "<code>0</code>".."<code>59</code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-24" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the similar pseudo-variable <code><a href="#%MINUTE%">%MINUTE%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_MONTH%"></span><code>%_MONTH%</code></dt> <dd>This pseudo-variable returns the months of the current date without leading zeros, f.e. "<code>1</code>".."<code>12</code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-25" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the similar pseudo-variable <code><a href="#%MONTH%">%MONTH%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%_ROWS%"></span><code>%_ROWS%</code></dt> <dd>This pseudo-variable returns the current number of screen rows depending on the display mode, f.e. "<code>25</code>", "<code>43</code>", "<code>50</code>", etc. This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-26" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See a similar environment variable <code><a href="#%$LENGTH%">%$LENGTH%</a></code> under DOS Plus.</dd></dl> <dl><dt><span class="anchor" id="%_SECOND%"></span><code>%_SECOND%</code></dt> <dd>This pseudo-variable returns the seconds of the current time without leading zeros, f.e. "<code>0</code>".."<code>59</code>". This variable was originally introduced by <a href="/wiki/4DOS" title="4DOS">4DOS</a>,<sup id="cite_ref-4DOS_8.00_HELP_10-27" class="reference"><a href="#cite_note-4DOS_8.00_HELP-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> but also became available with <code>COMMAND.COM</code> since DR-DOS 7.02. See also the similar pseudo-variable <code><a href="#%SECOND%">%SECOND%</a></code>.</dd></dl> <p><i>System information variables</i> supported by DR-DOS <code>COMMAND.COM</code> with networking loaded: </p> <dl><dt><span class="anchor" id="%LOGIN_NAME%"></span><code>%LOGIN_NAME%</code></dt> <dd>This pseudo-variable returns the user name. This always worked with <code><a href="/wiki/NETX" class="mw-redirect" title="NETX">NETX</a></code>, but it will also work with <a href="/wiki/Personal_NetWare" title="Personal NetWare">Personal NetWare</a>'s <a href="/wiki/Open_Data-Link_Interface" title="Open Data-Link Interface">ODI</a>/<a href="/wiki/Virtual_Loadable_Module" class="mw-redirect" title="Virtual Loadable Module">VLM</a> if the current drive is a PNW-mapped drive (otherwise an empty string is returned). See also the similarly named environment variable <code><a href="#%LOGINNAME%">%LOGINNAME%</a></code>.</dd></dl> <dl><dt><span class="anchor" id="%P_STATION%"></span><code>%P_STATION%</code></dt> <dd>This pseudo-variable returns the physical station number in a format "<code>????????????</code>". The value depends on the <a href="/wiki/MAC_address" title="MAC address">MAC address</a> of the network adapter, but can be overridden. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%STATION%"></span><code>%STATION%</code></dt> <dd>This pseudo-variable returns the logical station number starting with "<code>1</code>" for the first client. The numbers are assigned by the file server and remain static for as long as the <a href="/wiki/IPX" class="mw-redirect" title="IPX">IPX</a> connection remains established. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts.</dd></dl> <dl><dt><span class="anchor" id="%FULL_NAME%"></span><code>%FULL_NAME%</code></dt> <dd>This pseudo-variable returns the full name of the logged in user, if available. It resembles an identically named <i>identifier variable</i> in <a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> login scripts. See also the related pseudo-variable <code><a href="#%LOGIN_NAME%">%LOGIN_NAME%</a></code>.</dd></dl> <div class="mw-heading mw-heading3"><h3 id="Windows_2"><span class="anchor" id="WIN-PSEUDOENV"></span>Windows</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=16" title="Edit section: Windows"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><i>Dynamic environment variables</i> (also named <i>internal variables</i> or <i>system information variables</i> under DOS) are pseudo-environment variables supported by <code><a href="/wiki/CMD_(Windows)" class="mw-redirect" title="CMD (Windows)">CMD.EXE</a></code> when command-line extensions are enabled, and they expand to various discrete values whenever queried, that is, their values can change when queried multiple times even within the same command. While they can be used in batch jobs and at the prompt, they are not stored in the environment. Consequently, they are neither listed by <code>SET</code> nor do they exist for external programs to read. They are not case-sensitive. </p><p>Indirectly, they are also supported under Windows' <code>COMMAND.COM</code>, which has been modified to internally call <code>CMD.EXE</code> to execute the commands. </p> <dl><dt><span class="anchor" id="CD"></span><code>%CD%</code></dt> <dd>This pseudo-variable expands to the current directory equivalent to the output of the command <code><a href="/wiki/Cd_(command)" title="Cd (command)">CD</a></code> when called without arguments. While a long filename can be returned under <code>CMD.EXE</code> depending on the current directory, the fact that the current directory will always be in <a href="/wiki/8.3_filename" title="8.3 filename">8.3</a> format under <code>COMMAND.COM</code> will cause it to return a short filename under <code>COMMAND.COM</code>, even when <code>COMMAND</code> internally calls <code>CMD</code>.</dd></dl> <dl><dt><span class="anchor" id="CMDCMDLINE"></span><code>%CMDCMDLINE%</code></dt> <dd>This pseudo-variable expands to the original startup parameters of <code><a href="/wiki/CMD.EXE" class="mw-redirect" title="CMD.EXE">CMD.EXE</a></code>, f.e. "<code>C:\Windows\system32\cmd.exe</code>". Under Windows' <code>COMMAND.COM</code>, this may return something like "<code>C:\Windows\system32\cmd.exe /c ...</code>" due to the fact that <code>COMMAND.COM</code> calls <code>CMD.EXE</code> internally.</dd></dl> <dl><dt><span class="anchor" id="CMDEXTVERSION"></span><code>%CMDEXTVERSION%</code></dt> <dd>This pseudo-variable expands to the version of the command-line extensions of <code><a href="/wiki/CMD.EXE" class="mw-redirect" title="CMD.EXE">CMD.EXE</a></code>, if enabled (e.g. "<code>1</code>" under <a href="/wiki/Windows_NT" title="Windows NT">Windows NT</a>, "<code>2</code>" under <a href="/wiki/Windows_2000" title="Windows 2000">Windows 2000</a> and <a href="/wiki/Windows_XP" title="Windows XP">Windows XP</a>).</dd></dl> <dl><dt><span class="anchor" id="DATE"></span><code>%DATE%</code></dt> <dd>This pseudo-variable expands to the current date. The date is displayed according to the current user's <a href="/wiki/Calendar_date" title="Calendar date">date format</a> preferences.</dd></dl> <dl><dt><span class="anchor" id="ERRORLEVEL"></span><code>%ERRORLEVEL%</code></dt> <dd>This pseudo-variable expands to the last set error level, a value between "<code>0</code>" and "<code>255</code>" (without leading zeros).<sup id="cite_ref-Paul_1997_BATTIPS_32-2" class="reference"><a href="#cite_note-Paul_1997_BATTIPS-32"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Allen_2005_37-0" class="reference"><a href="#cite_note-Allen_2005-37"><span class="cite-bracket">&#91;</span>35<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-FD_2003_Errorlevel_33-2" class="reference"><a href="#cite_note-FD_2003_Errorlevel-33"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup> External commands and some internal commands set error levels upon execution. See also the identically named pseudo-variable <code><a href="#%ERRORLEVEL%">%ERRORLEVEL%</a></code> under DR-DOS and the <code><a href="/wiki/IF_ERRORLEVEL_(Windows_command)" class="mw-redirect" title="IF ERRORLEVEL (Windows command)">IF ERRORLEVEL</a></code> command.</dd></dl> <dl><dt><span class="anchor" id="HIGHESTNUMANODENUMBER"></span><code>%HIGHESTNUMANODENUMBER%</code></dt> <dd>This pseudo-variable returns the number of the highest <a href="/wiki/Non-uniform_memory_access" title="Non-uniform memory access">NUMA</a> node.</dd></dl> <dl><dt><span class="anchor" id="RANDOM"></span><code>%RANDOM%</code></dt> <dd>This pseudo-variable returns a random number between "<code>0</code>" and "<code>32767</code>".</dd></dl> <dl><dt><span class="anchor" id="TIME"></span><code>%TIME%</code></dt> <dd>This pseudo-variable returns the current time. The time is displayed according to the current user's time format preferences. If the <code>%TIME%</code> and <code><a href="#DATE">%DATE%</a></code> variables are both used, it is important to read them both in this particular order in rapid succession in order to avoid midnight-rollover problems.</dd></dl> <div class="mw-heading mw-heading3"><h3 id="Other_shells">Other shells</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=17" title="Edit section: Other shells"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Unix-like shells have similar dynamically generated variables, bash's <code>$RANDOM</code> being a well-known example. However, since these shells have a concept of local variables, they are described as special local variables instead.<sup id="cite_ref-GNU_BASH_38-0" class="reference"><a href="#cite_note-GNU_BASH-38"><span class="cite-bracket">&#91;</span>36<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=18" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Variable_(computer_science)" title="Variable (computer science)">Variable (computer science)</a></li> <li><a href="/wiki/List_of_POSIX_commands" title="List of POSIX commands">List of POSIX commands</a></li> <li><a href="/wiki/List_of_DOS_commands" title="List of DOS commands">List of DOS commands</a></li> <li><a href="/wiki/Special_folder" title="Special folder">Special folder</a></li> <li><a href="/wiki/Environment_Modules_(software)" title="Environment Modules (software)">Environment Modules</a></li> <li><a href="/wiki/PWB_shell" title="PWB shell">PWB shell</a></li> <li><a href="/wiki/Windows_Registry" title="Windows Registry">Windows Registry</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=19" title="Edit section: Notes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-NB_ENVLEN128-14"><span class="mw-cite-backlink">^ <a href="#cite_ref-NB_ENVLEN128_14-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-NB_ENVLEN128_14-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Applications not coping properly with environment variables longer than 128 characters include <a href="/wiki/CadStar_PCB" class="mw-redirect" title="CadStar PCB">CadStar PCB</a>, Checkit, Computer Select CD-ROM, RenderMan, <a href="/wiki/VINES_Network" class="mw-redirect" title="VINES Network">VINES Network</a>, <a href="/wiki/Windows_3.0" title="Windows 3.0">Windows 3.0</a>, and <a href="/wiki/Word_for_Windows_6.0" class="mw-redirect" title="Word for Windows 6.0">Word for Windows 6.0</a>.</span> </li> <li id="cite_note-NB_CMDLINE-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-NB_CMDLINE_20-0">^</a></b></span> <span class="reference-text"><a href="/wiki/4DOS" title="4DOS">4DOS</a> and <a href="/wiki/MS-DOS_7.0" class="mw-redirect" title="MS-DOS 7.0">MS-DOS 7.0</a> set the length to 127 and insert <a href="/wiki/ASCII_13" class="mw-redirect" title="ASCII 13">ASCII-13</a> at this position, but <a href="/wiki/Borland" title="Borland">Borland</a> libraries set the length to the invalid value of 128 and do not insert an ASCII-13. For shorter command lines, 4DOS/<a href="/wiki/NDOS" class="mw-redirect" title="NDOS">NDOS</a> and <a href="/wiki/DR-DOS" title="DR-DOS">DR-DOS</a> also insert an <a href="/wiki/ASCII_0" class="mw-redirect" title="ASCII 0">ASCII-0</a> after the ASCII-13, but not when invoked via <a href="/wiki/INSTALL_(CONFIG.SYS_directive)" class="mw-redirect" title="INSTALL (CONFIG.SYS directive)">INSTALL</a> directive; MS-DOS does not.</span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=20" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-ClassicShS-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-ClassicShS_1-0">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFRobbinsBeebe2005" class="citation book cs1">Robbins, Arnold; Beebe, Nelson H. F. (May 2005). Apandi, Tatiana; Randal, Allison; Witwer, Adam (eds.). <i>Classic Shell Scripting</i> (1&#160;ed.). <a href="/wiki/O%27Reilly_Media" title="O&#39;Reilly Media">O'Reilly</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-596-00595-5" title="Special:BookSources/978-0-596-00595-5"><bdi>978-0-596-00595-5</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Classic+Shell+Scripting&amp;rft.edition=1&amp;rft.pub=O%27Reilly&amp;rft.date=2005-05&amp;rft.isbn=978-0-596-00595-5&amp;rft.aulast=Robbins&amp;rft.aufirst=Arnold&amp;rft.au=Beebe%2C+Nelson+H.+F.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-OG_unset-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-OG_unset_2-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#unset">"unset - unset values and attributes of variables and functions&#160;&#8211;&#32;"</a>. <i>Commands &amp; Utilities Reference, <a href="/wiki/Single_UNIX_Specification" title="Single UNIX Specification">The Single UNIX Specification</a> - The Open Group Base Specifications, IEEE Std 1003.1-2008</i> (Issue 7&#160;ed.). The <a href="/wiki/IEEE" class="mw-redirect" title="IEEE">IEEE</a> and <a href="/wiki/The_Open_Group" title="The Open Group">The Open Group</a>. 2016 [2001]. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171218175244/http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html">Archived</a> from the original on 2017-12-18<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-12-18</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Commands+%26+Utilities+Reference%2C+The+Single+UNIX+Specification+-+The+Open+Group+Base+Specifications%2C+IEEE+Std+1003.1-2008&amp;rft.atitle=unset+-+unset+values+and+attributes+of+variables+and+functions+%26ndash%3B%26%2332%3B&amp;rft.date=2016&amp;rft_id=http%3A%2F%2Fpubs.opengroup.org%2Fonlinepubs%2F9699919799%2Futilities%2FV3_chap02.html%23unset&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Bash_unset-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-Bash_unset_3-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFfgrose2015" class="citation web cs1">fgrose (2015-07-31) [2011]. <a rel="nofollow" class="external text" href="http://wiki.bash-hackers.org/commands/builtin/unset">"The unset builtin command"</a>. <i>Bash Hackers Wiki</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171218175214/http://wiki.bash-hackers.org/commands/builtin/unset">Archived</a> from the original on 2017-12-18<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-12-18</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Bash+Hackers+Wiki&amp;rft.atitle=The+unset+builtin+command&amp;rft.date=2015-07-31&amp;rft.au=fgrose&amp;rft_id=http%3A%2F%2Fwiki.bash-hackers.org%2Fcommands%2Fbuiltin%2Funset&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-appdata-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-appdata_4-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJacobsKorenSatran2017" class="citation web cs1">Jacobs, Mike; Koren, Alexander; Satran, Michael (2017-11-14). <a rel="nofollow" class="external text" href="https://docs.microsoft.com/en-us/windows/uwp/app-settings/store-and-retrieve-app-data">"Store and retrieve settings and other app data"</a>. <a href="/wiki/Microsoft" title="Microsoft">Microsoft</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171218175200/https://docs.microsoft.com/de-de/windows/uwp/design/app-settings/store-and-retrieve-app-data">Archived</a> from the original on 2017-12-18<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-12-18</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Store+and+retrieve+settings+and+other+app+data&amp;rft.pub=Microsoft&amp;rft.date=2017-11-14&amp;rft.aulast=Jacobs&amp;rft.aufirst=Mike&amp;rft.au=Koren%2C+Alexander&amp;rft.au=Satran%2C+Michael&amp;rft_id=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fapp-settings%2Fstore-and-retrieve-app-data&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-ESR_2002_BROWSER-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-ESR_2002_BROWSER_5-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRaymond2002" class="citation web cs1"><a href="/wiki/Eric_S._Raymond" title="Eric S. Raymond">Raymond, Eric</a> (2002-08-02) [Originally published 2001]. <a rel="nofollow" class="external text" href="http://www.catb.org/~esr/BROWSER/index.html">"The BROWSER project"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190921223921/http://www.catb.org/~esr/BROWSER/index.html">Archived</a> from the original on 2019-09-21<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-10-21</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+BROWSER+project&amp;rft.date=2002-08-02&amp;rft.aulast=Raymond&amp;rft.aufirst=Eric&amp;rft_id=http%3A%2F%2Fwww.catb.org%2F~esr%2FBROWSER%2Findex.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-LWN_2001_BROWSER-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-LWN_2001_BROWSER_6-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lwn.net/2001/0201/devel.php3">"LWN - Development"</a>. <i>LWN.net</i>. 2001-02-01. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190208125048/https://lwn.net/2001/0201/devel.php3">Archived</a> from the original on 2019-02-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-10-21</span></span>. <q>Standardizing a BROWSER environment variable. Eric Raymond is promoting the use of a new environment variable, BROWSER, to complement the existing PAGER, MAILER, and EDITOR variables. This effort is being tested as an experiment in hacking social systems.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=LWN.net&amp;rft.atitle=LWN+-+Development&amp;rft.date=2001-02-01&amp;rft_id=https%3A%2F%2Flwn.net%2F2001%2F0201%2Fdevel.php3&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-PERL_ENV_BROWSER-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-PERL_ENV_BROWSER_7-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFŠpaček2020" class="citation web cs1">Špaček, Michal (2020-01-19) [First version published 2013]. <a rel="nofollow" class="external text" href="https://metacpan.org/pod/Env::Browser">"Env::Browser-0.06"</a>. <i>metacpan.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20201021202950/https://metacpan.org/pod/Env::Browser">Archived</a> from the original on 2020-10-21<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-10-21</span></span>. <q>Env::Browser - Process environment variable $BROWSER and run web browser</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=metacpan.org&amp;rft.atitle=Env%3A%3ABrowser-0.06&amp;rft.date=2020-01-19&amp;rft.aulast=%C5%A0pa%C4%8Dek&amp;rft.aufirst=Michal&amp;rft_id=https%3A%2F%2Fmetacpan.org%2Fpod%2FEnv%3A%3ABrowser&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-PYTHON_WEBBROWSER-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-PYTHON_WEBBROWSER_8-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python.org/3/library/webbrowser.html">"webbrowser — Convenient Web-browser controller"</a>. <i>docs.python.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20201013205951/https://docs.python.org/3/library/webbrowser.html">Archived</a> from the original on 2020-10-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-10-21</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=docs.python.org&amp;rft.atitle=webbrowser+%E2%80%94+Convenient+Web-browser+controller&amp;rft_id=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fwebbrowser.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-DEBIAN_DFLT_WEB_BROWSER-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-DEBIAN_DFLT_WEB_BROWSER_9-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki.debian.org/DefaultWebBrowser">"DefaultWebBrowser - Debian Wiki"</a>. <i>wiki.debian.org</i>. 2020-06-10. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20201021204658/https://wiki.debian.org/DefaultWebBrowser">Archived</a> from the original on 2020-10-21<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-10-21</span></span>. <q>The environment variable BROWSER can be set to[…] always choose your desired browser.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=wiki.debian.org&amp;rft.atitle=DefaultWebBrowser+-+Debian+Wiki&amp;rft.date=2020-06-10&amp;rft_id=https%3A%2F%2Fwiki.debian.org%2FDefaultWebBrowser&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-4DOS_8.00_HELP-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-4DOS_8.00_HELP_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-9"><sup><i><b>j</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-10"><sup><i><b>k</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-11"><sup><i><b>l</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-12"><sup><i><b>m</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-13"><sup><i><b>n</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-14"><sup><i><b>o</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-15"><sup><i><b>p</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-16"><sup><i><b>q</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-17"><sup><i><b>r</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-18"><sup><i><b>s</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-19"><sup><i><b>t</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-20"><sup><i><b>u</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-21"><sup><i><b>v</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-22"><sup><i><b>w</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-23"><sup><i><b>x</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-24"><sup><i><b>y</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-25"><sup><i><b>z</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-26"><sup><i><b>aa</b></i></sup></a> <a href="#cite_ref-4DOS_8.00_HELP_10-27"><sup><i><b>ab</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBrothersRawsonConnPaul2002" class="citation book cs1">Brothers, Hardin; <a href="/wiki/Tom_Rawson" class="mw-redirect" title="Tom Rawson">Rawson, Tom</a>; <a href="/wiki/Rex_C._Conn" class="mw-redirect" title="Rex C. Conn">Conn, Rex C.</a>; Paul, Matthias R.; Dye, Charles E.; Georgiev, Luchezar I. (2002-02-27). <a href="/wiki/4DOS_8.00" class="mw-redirect" title="4DOS 8.00"><i>4DOS 8.00 online help</i></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=4DOS+8.00+online+help&amp;rft.date=2002-02-27&amp;rft.aulast=Brothers&amp;rft.aufirst=Hardin&amp;rft.au=Rawson%2C+Tom&amp;rft.au=Conn%2C+Rex+C.&amp;rft.au=Paul%2C+Matthias+R.&amp;rft.au=Dye%2C+Charles+E.&amp;rft.au=Georgiev%2C+Luchezar+I.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_1997_NWDOSTIP-11"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_1997_NWDOSTIP_11-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-9"><sup><i><b>j</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-10"><sup><i><b>k</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-11"><sup><i><b>l</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-12"><sup><i><b>m</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-13"><sup><i><b>n</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-14"><sup><i><b>o</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-15"><sup><i><b>p</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-16"><sup><i><b>q</b></i></sup></a> <a href="#cite_ref-Paul_1997_NWDOSTIP_11-17"><sup><i><b>r</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1997" class="citation book cs1 cs1-prop-foreign-lang-source">Paul, Matthias R. (1997-07-30) [1994-05-01]. <a rel="nofollow" class="external text" href="http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm"><i>NWDOS-TIPs&#160;— Tips &amp; Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds</i></a>. Release 157 (in German) (3&#160;ed.). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161104235829/http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm">Archived</a> from the original on 2016-11-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-08-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=NWDOS-TIPs+%E2%80%94+Tips+%26+Tricks+rund+um+Novell+DOS+7%2C+mit+Blick+auf+undokumentierte+Details%2C+Bugs+und+Workarounds&amp;rft.series=Release+157&amp;rft.edition=3&amp;rft.date=1997-07-30&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.antonis.de%2Fdos%2Fdos-tuts%2Fmpdostip%2Fhtml%2Fnwdostip.htm&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span> <span class="cs1-visible-error citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: </span><span class="cs1-visible-error citation-comment"><code class="cs1-code">&#124;work=</code> ignored (<a href="/wiki/Help:CS1_errors#periodical_ignored" title="Help:CS1 errors">help</a>)</span> (NB. NWDOSTIP.TXT is a comprehensive work on <a href="/wiki/Novell_DOS_7" class="mw-redirect" title="Novell DOS 7">Novell DOS 7</a> and <a href="/wiki/OpenDOS_7.01" class="mw-redirect" title="OpenDOS 7.01">OpenDOS 7.01</a>, including the description of many undocumented features and internals. The provided link points to a HTML-converted version of the file, which is part of the <code>MPDOSTIP.ZIP</code> collection.) <a rel="nofollow" class="external autonumber" href="https://web.archive.org/web/20190601152204/https://www.sac.sk/download/text/mpdostip.zip">[1]</a></span> </li> <li id="cite_note-Paul_1997_4DOSTIP-12"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_1997_4DOSTIP_12-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_1997_4DOSTIP_12-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_1997_4DOSTIP_12-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Paul_1997_4DOSTIP_12-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Paul_1997_4DOSTIP_12-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1997" class="citation web cs1 cs1-prop-foreign-lang-source">Paul, Matthias R. (1997-05-01) [1995-03-01]. <a rel="nofollow" class="external text" href="http://www.antonis.de/dos/dos-tuts/mpdostip/html/4dostip.htm">"Hinweise zu JPSofts 4DOS 5.5b/c, 5.51, 5.52a und NDOS"</a>. <i>MPDOSTIP</i> (in German). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161104211143/http://www.antonis.de/dos/dos-tuts/mpdostip/html/4dostip.htm">Archived</a> from the original on 2016-11-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2015-05-08</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=MPDOSTIP&amp;rft.atitle=Hinweise+zu+JPSofts+4DOS+5.5b%2Fc%2C+5.51%2C+5.52a+und+NDOS&amp;rft.date=1997-05-01&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.antonis.de%2Fdos%2Fdos-tuts%2Fmpdostip%2Fhtml%2F4dostip.htm&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span> (NB. The provided link points to a HTML-converted version of the <code>4DOS5TIP.TXT</code> file, which is part of the <code>MPDOSTIP.ZIP</code> collection.) <a rel="nofollow" class="external autonumber" href="https://web.archive.org/web/20190601152204/https://www.sac.sk/download/text/mpdostip.zip">[2]</a></span> </li> <li id="cite_note-Paul_1997_OD-A3-13"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_1997_OD-A3_13-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_1997_OD-A3_13-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1997" class="citation web cs1">Paul, Matthias R. (1997-10-02). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20031004074600/http://www-student.informatik.uni-bonn.de/~frinke/ibmbioa3.zip">"Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.uni-bonn.de/~uzs180/download/ibmbioa3.zip">the original</a> on 2003-10-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2009-03-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Caldera+OpenDOS+7.01%2F7.02+Update+Alpha+3+IBMBIO.COM+README.TXT&amp;rft.date=1997-10-02&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.uni-bonn.de%2F~uzs180%2Fdownload%2Fibmbioa3.zip&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span> <a rel="nofollow" class="external autonumber" href="https://web.archive.org/web/20181225154705/http://mirror.macintosharchive.org/max1zzz.co.uk/+Windows%20&amp;%20DOS/DOS/System/Novell/Support/Bins/Op702src.zip">[3]</a></span> </li> <li id="cite_note-Paul_1997_SETENV-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-Paul_1997_SETENV_15-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1997" class="citation web cs1">Paul, Matthias R. (1997-05-27) [1996]. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20090215001349/http://www.uni-bonn.de/~uzs180/mpdokeng.html#M.SETENV">"SETENV v1.11"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.uni-bonn.de:80/~uzs180/mpdokeng.html#M.SETENV">the original</a> on 2009-02-15<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-08-09</span></span>. <q>[…] SETENV […] to hide and later restore the […] pre-environment […] By using SETENV.COM you can save some KiloBytes of rare DOS memory […] depending on the number of drivers loaded by <a href="/wiki/INSTALL_(CONFIG.SYS_directive)" class="mw-redirect" title="INSTALL (CONFIG.SYS directive)">INSTALL=</a>/<a href="/wiki/INSTALLHIGH_(CONFIG.SYS_directive)" class="mw-redirect" title="INSTALLHIGH (CONFIG.SYS directive)">INSTALLHIGH=</a>/<a href="/wiki/HIINSTALL_(CONFIG.SYS_directive)" class="mw-redirect" title="HIINSTALL (CONFIG.SYS directive)">HIINSTALL=</a> and the current size of the pre-environment. […] this original […] feature cannot be found in any known memory manager/optimizer. […]</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=SETENV+v1.11&amp;rft.date=1997-05-27&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.uni-bonn.de%3A80%2F~uzs180%2Fmpdokeng.html%23M.SETENV&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2002_CTMOUSE-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-Paul_2002_CTMOUSE_16-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2002" class="citation web cs1">Paul, Matthias R. (2002-04-06). <a rel="nofollow" class="external text" href="https://marc.info/?l=freedos-dev&amp;m=101807226917577">"Re: &#91;fd-dev&#93; ANNOUNCE: CuteMouse 2.0 alpha 1"</a>. <i>freedos-dev</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200207130948/https://marc.info/?l=freedos-dev&amp;m=101807226917577&amp;w=2">Archived</a> from the original on 2020-02-07<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-02-07</span></span>. <q>[…] In CTMOUSE.ASM prepareTSR routine I found a comment in regard to the zero-environment. […] <a href="/wiki/DESQview" title="DESQview">DESQview</a> or <a href="/wiki/DR-DOS" title="DR-DOS">DRDOS</a> zero-env? […] release environment block […] skip if any problem […] zero-pad for <a href="/wiki/MEM_(DOS_command)" class="mw-redirect" title="MEM (DOS command)">MEM</a> style utilities […]</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=freedos-dev&amp;rft.atitle=Re%3A+%5Bfd-dev%5D+ANNOUNCE%3A+CuteMouse+2.0+alpha+1&amp;rft.date=2002-04-06&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=https%3A%2F%2Fmarc.info%2F%3Fl%3Dfreedos-dev%26m%3D101807226917577&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-PTS-DOS_2000-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-PTS-DOS_2000_17-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://download.paragon-software.com/doc/manual_dos_eng.pdf">"PTS-DOS 2000 Pro User Manual"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2018-05-12<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-05-12</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=PTS-DOS+2000+Pro+User+Manual&amp;rft_id=http%3A%2F%2Fdownload.paragon-software.com%2Fdoc%2Fmanual_dos_eng.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2002_COM-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-Paul_2002_COM_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2002" class="citation newsgroup cs1">Paul, Matthias R. (2002-10-07). <a rel="nofollow" class="external text" href="https://groups.google.com/d/msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ">"Re: Run a COM file"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:alt.msdos.programmer">alt.msdos.programmer</a>. <a rel="nofollow" class="external text" href="https://archive.today/20170903230312/https://groups.google.com/forum/%23!msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ">Archived</a> from the original on 2017-09-03<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-09-03</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Re%3A+Run+a+COM+file&amp;rft.pub=alt.msdos.programmer&amp;rft.date=2002-10-07&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsg%2Falt.msdos.programmer%2Fd7blJjY0H5M%2FQu3VeTOIGVcJ&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span> <a rel="nofollow" class="external autonumber" href="https://groups.google.com/d/msg/alt.lang.asm/PNOd9zfYow0/vXbab16j4XwJ">[4]</a></span> </li> <li id="cite_note-Datalight_2005_ROM-DOS-19"><span class="mw-cite-backlink">^ <a href="#cite_ref-Datalight_2005_ROM-DOS_19-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Datalight_2005_ROM-DOS_19-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Datalight_2005_ROM-DOS_19-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Datalight_2005_ROM-DOS_19-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Datalight_2005_ROM-DOS_19-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Datalight_2005_ROM-DOS_19-5"><sup><i><b>f</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFDatalight,_Inc.GPvNO2005" class="citation web cs1"><a href="/wiki/Datalight,_Inc." class="mw-redirect" title="Datalight, Inc.">Datalight, Inc.</a>; GPvNO (April 2005) [1999]. <a rel="nofollow" class="external text" href="https://www.datalight.com/assets/files/ROM-DOS_Users_Guide.pdf">"Datalight ROM-DOS User's Guide"</a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/Datalight,_Inc." class="mw-redirect" title="Datalight, Inc.">Datalight, Inc.</a> 3010-0200-0716. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190320151321/https://www.datalight.com/assets/files/ROM-DOS_Users_Guide.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2019-03-20<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-09-16</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Datalight+ROM-DOS+User%27s+Guide&amp;rft.pub=Datalight%2C+Inc.&amp;rft.date=2005-04&amp;rft.au=Datalight%2C+Inc.&amp;rft.au=GPvNO&amp;rft_id=https%3A%2F%2Fwww.datalight.com%2Fassets%2Ffiles%2FROM-DOS_Users_Guide.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Kotulla_1987_Environment-21"><span class="mw-cite-backlink">^ <a href="#cite_ref-Kotulla_1987_Environment_21-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-Kotulla_1987_Environment_21-8"><sup><i><b>i</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKotulla1987" class="citation journal cs1 cs1-prop-foreign-lang-source"><a href="/wiki/Martin_Kotulla" class="mw-redirect" title="Martin Kotulla">Kotulla, Martin</a> (November 1987). <a rel="nofollow" class="external text" href="http://www.homecomputerworld.at/magazine/cpc/CPCAI-87-11.pdf">"Von CP/M zu MS-DOS, Teil 11"</a> <span class="cs1-format">(PDF)</span>. <i>Professional Computing (PC) - Schneider International</i> (in German). <b>3</b> (11): 100–103. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190424201007/http://www.homecomputerworld.at/magazine/cpc/CPCAI-87-11.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2019-04-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-05-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Professional+Computing+%28PC%29+-+Schneider+International&amp;rft.atitle=Von+CP%2FM+zu+MS-DOS%2C+Teil+11&amp;rft.volume=3&amp;rft.issue=11&amp;rft.pages=100-103&amp;rft.date=1987-11&amp;rft.aulast=Kotulla&amp;rft.aufirst=Martin&amp;rft_id=http%3A%2F%2Fwww.homecomputerworld.at%2Fmagazine%2Fcpc%2FCPCAI-87-11.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2002_CLS-22"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_2002_CLS_22-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-9"><sup><i><b>j</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-10"><sup><i><b>k</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-11"><sup><i><b>l</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-12"><sup><i><b>m</b></i></sup></a> <a href="#cite_ref-Paul_2002_CLS_22-13"><sup><i><b>n</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2002" class="citation web cs1">Paul, Matthias R. (2002-03-26). <a rel="nofollow" class="external text" href="https://marc.info/?l=freedos-dev&amp;m=101717593306186&amp;w=2">"Updated CLS posted"</a>. freedos-dev mailing list. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181004145539/https://marc.info/?l=freedos-dev&amp;m=101717593306186&amp;w=2">Archived</a> from the original on 2018-10-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-08-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Updated+CLS+posted&amp;rft.pub=freedos-dev+mailing+list&amp;rft.date=2002-03-26&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fmarc.info%2F%3Fl%3Dfreedos-dev%26m%3D101717593306186%26w%3D2&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Caldera_1998_USER-23"><span class="mw-cite-backlink">^ <a href="#cite_ref-Caldera_1998_USER_23-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-Caldera_1998_USER_23-7"><sup><i><b>h</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20161104235434/http://www.drdos.net/documentation/usergeng/uglontoc.htm"><i>Caldera DR-DOS 7.02 User Guide</i></a>. <a href="/wiki/Caldera,_Inc." class="mw-redirect" title="Caldera, Inc.">Caldera, Inc.</a> 1998 [1993, 1997]. Archived from <a rel="nofollow" class="external text" href="http://www.drdos.net/documentation/usergeng/uglontoc.htm">the original</a> on 2016-11-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2013-08-10</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Caldera+DR-DOS+7.02+User+Guide&amp;rft.pub=Caldera%2C+Inc.&amp;rft.date=1998&amp;rft_id=http%3A%2F%2Fwww.drdos.net%2Fdocumentation%2Fusergeng%2Fuglontoc.htm&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2017-24"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_2017_24-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_2017_24-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_2017_24-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Paul_2017_24-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2017" class="citation web cs1">Paul, Matthias R. (2017-08-14) [2017-08-07]. <a rel="nofollow" class="external text" href="http://hpmuseum.org/forum/thread-8774-post-77196.html#pid77196">"The continuing saga of Windows 3.1 in enhanced mode on OmniBook 300"</a>. <i>MoHPC - the Museum of HP Calculators</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180501185933/http://hpmuseum.org/forum/thread-8774-post-77196.html">Archived</a> from the original on 2018-05-01<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-05-01</span></span>. <q>[…] set DRSYS=ON (optional to tell SYS you are aware of the fact that you're running it in a foreign environment and want to proceed anyway without having to individually ACK some warnings and extra info screens displayed in this scenario otherwise) […]</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=MoHPC+-+the+Museum+of+HP+Calculators&amp;rft.atitle=The+continuing+saga+of+Windows+3.1+in+enhanced+mode+on+OmniBook+300&amp;rft.date=2017-08-14&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fhpmuseum.org%2Fforum%2Fthread-8774-post-77196.html%23pid77196&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-CCI_1997_HELP-25"><span class="mw-cite-backlink">^ <a href="#cite_ref-CCI_1997_HELP_25-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-CCI_1997_HELP_25-8"><sup><i><b>i</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><i>CCI Multiuser DOS 7.22 GOLD Online Documentation</i>. <a href="/wiki/Concurrent_Controls,_Inc." class="mw-redirect" title="Concurrent Controls, Inc.">Concurrent Controls, Inc.</a> (CCI). 1997-02-10. HELP.HLP.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=CCI+Multiuser+DOS+7.22+GOLD+Online+Documentation&amp;rft.pub=Concurrent+Controls%2C+Inc.+%28CCI%29&amp;rft.date=1997-02-10&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-CCI_1997_PRINTDOC-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-CCI_1997_PRINTDOC_26-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><i>CCI Multiuser DOS 7.22 GOLD Installation Guide</i>. <a href="/wiki/Concurrent_Controls,_Inc." class="mw-redirect" title="Concurrent Controls, Inc.">Concurrent Controls, Inc.</a> (CCI). 1997-02-10. PRINTDOC.HLP.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=CCI+Multiuser+DOS+7.22+GOLD+Installation+Guide&amp;rft.pub=Concurrent+Controls%2C+Inc.+%28CCI%29&amp;rft.date=1997-02-10&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2002_OS-27"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_2002_OS_27-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_2002_OS_27-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_2002_OS_27-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2002" class="citation web cs1">Paul, Matthias R. (2002-02-20). <a rel="nofollow" class="external text" href="https://marc.info/?l=freedos-dev&amp;m=101423986407077&amp;w=2">"How to detect FreeCOM/FreeDOS in-batch?"</a>. freedos-dev mailing list. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181106220459/https://marc.info/?l=freedos-dev&amp;m=101423986407077&amp;w=2">Archived</a> from the original on 2018-11-06<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-08-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=How+to+detect+FreeCOM%2FFreeDOS+in-batch%3F&amp;rft.pub=freedos-dev+mailing+list&amp;rft.date=2002-02-20&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fmarc.info%2F%3Fl%3Dfreedos-dev%26m%3D101423986407077%26w%3D2&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables">"Recognized environment variables - Windows Deployment"</a>. 2024-01-09.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Recognized+environment+variables+-+Windows+Deployment&amp;rft.date=2024-01-09&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fdeployment%2Fusmt%2Fusmt-recognized-environment-variables&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Ten_XP-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-Ten_XP_29-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBrink2018" class="citation web cs1">Brink, Shawn (2018-11-17). <a rel="nofollow" class="external text" href="https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html">"Environment Variables in Windows 10 - Complete List of Environment Variables in Windows 10"</a>. <i>Windows Ten Forums</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190327135346/https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html">Archived</a> from the original on 2019-03-27<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-04-24</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Windows+Ten+Forums&amp;rft.atitle=Environment+Variables+in+Windows+10+-+Complete+List+of+Environment+Variables+in+Windows+10&amp;rft.date=2018-11-17&amp;rft.aulast=Brink&amp;rft.aufirst=Shawn&amp;rft_id=https%3A%2F%2Fwww.tenforums.com%2Ftutorials%2F3234-environment-variables-windows-10-a.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://msdn.microsoft.com/en-us/library/aa384274.aspx#environment-variables">"WOW64 Implementation Details"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=WOW64+Implementation+Details&amp;rft_id=https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Faa384274.aspx%23environment-variables&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Schulz_2014_Ordner-31"><span class="mw-cite-backlink">^ <a href="#cite_ref-Schulz_2014_Ordner_31-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-9"><sup><i><b>j</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-10"><sup><i><b>k</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-11"><sup><i><b>l</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-12"><sup><i><b>m</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-13"><sup><i><b>n</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-14"><sup><i><b>o</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-15"><sup><i><b>p</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-16"><sup><i><b>q</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-17"><sup><i><b>r</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-18"><sup><i><b>s</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-19"><sup><i><b>t</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-20"><sup><i><b>u</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-21"><sup><i><b>v</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-22"><sup><i><b>w</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-23"><sup><i><b>x</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-24"><sup><i><b>y</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-25"><sup><i><b>z</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-26"><sup><i><b>aa</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-27"><sup><i><b>ab</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-28"><sup><i><b>ac</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-29"><sup><i><b>ad</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-30"><sup><i><b>ae</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-31"><sup><i><b>af</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-32"><sup><i><b>ag</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-33"><sup><i><b>ah</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-34"><sup><i><b>ai</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-35"><sup><i><b>aj</b></i></sup></a> <a href="#cite_ref-Schulz_2014_Ordner_31-36"><sup><i><b>ak</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSchulz2014" class="citation journal cs1 cs1-prop-foreign-lang-source">Schulz, Hajo (2014-10-02). <a rel="nofollow" class="external text" href="https://www.heise.de/ct/ausgabe/2014-22-Die-benannten-Ordner-in-Windows-aus-User-und-Entwicklersicht-2406251.html">"Ordner für spezielle Fälle&#160;— Die "benannten Ordner" in Windows aus User- und Entwicklersicht"</a> &#91;Special purpose folders&#160;— Windows' "named folders" from a user's and developer's perspective&#93;. <i><a href="/wiki/C%27t" title="C&#39;t">c't - magazin für computertechnik</a></i> (in German). <b>2014</b> (22). <a href="/wiki/Heise_Verlag" class="mw-redirect" title="Heise Verlag">Heise Verlag</a>: 180–184. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160709114401/https://www.heise.de/ct/ausgabe/2014-22-Die-benannten-Ordner-in-Windows-aus-User-und-Entwicklersicht-2406251.html">Archived</a> from the original on 2016-07-09<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-04-08</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=c%27t+-+magazin+f%C3%BCr+computertechnik&amp;rft.atitle=Ordner+f%C3%BCr+spezielle+F%C3%A4lle+%E2%80%94+Die+%22benannten+Ordner%22+in+Windows+aus+User-+und+Entwicklersicht&amp;rft.volume=2014&amp;rft.issue=22&amp;rft.pages=180-184&amp;rft.date=2014-10-02&amp;rft.aulast=Schulz&amp;rft.aufirst=Hajo&amp;rft_id=https%3A%2F%2Fwww.heise.de%2Fct%2Fausgabe%2F2014-22-Die-benannten-Ordner-in-Windows-aus-User-und-Entwicklersicht-2406251.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_1997_BATTIPS-32"><span class="mw-cite-backlink">^ <a href="#cite_ref-Paul_1997_BATTIPS_32-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Paul_1997_BATTIPS_32-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Paul_1997_BATTIPS_32-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1997" class="citation book cs1 cs1-prop-foreign-lang-source">Paul, Matthias R. (1997-05-01) [1993-10-01]. <a rel="nofollow" class="external text" href="http://www.antonis.de/dos/batchtut/battips/index.htm#7"><i>BATTIPs&#160;— Tips &amp; Tricks zur Programmierung von Batchjobs</i></a> (in German). 7: ERRORLEVEL abfragen. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170823191411/http://www.antonis.de/dos/batchtut/battips/index.htm">Archived</a> from the original on 2017-08-23<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-08-23</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=BATTIPs+%E2%80%94+Tips+%26+Tricks+zur+Programmierung+von+Batchjobs&amp;rft.pages=7%3A+ERRORLEVEL+abfragen&amp;rft.date=1997-05-01&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.antonis.de%2Fdos%2Fbatchtut%2Fbattips%2Findex.htm%237&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span> <span class="cs1-visible-error citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: </span><span class="cs1-visible-error citation-comment"><code class="cs1-code">&#124;work=</code> ignored (<a href="/wiki/Help:CS1_errors#periodical_ignored" title="Help:CS1 errors">help</a>)</span> <a rel="nofollow" class="external autonumber" href="https://www.auersoft.eu/soft/by-others/dos-exitcodes-de.html">[5]</a> <a rel="nofollow" class="external autonumber" href="https://www.auersoft.eu/soft/by-others/dos-exitcodes-en.html">[6]</a> <a rel="nofollow" class="external text" href="https://archive.today/20170911103337/https://www.auersoft.eu/soft/by-others/dos-exitcodes-en.html">Archived</a> 2017-09-11 at <a href="/wiki/Archive.today" title="Archive.today">archive.today</a> (NB. BATTIPS.TXT is part of MPDOSTIP.ZIP. The provided link points to a HTML-converted older version of the BATTIPS.TXT file.) <a rel="nofollow" class="external autonumber" href="https://web.archive.org/web/20190601152204/https://www.sac.sk/download/text/mpdostip.zip">[7]</a></span> </li> <li id="cite_note-FD_2003_Errorlevel-33"><span class="mw-cite-backlink">^ <a href="#cite_ref-FD_2003_Errorlevel_33-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FD_2003_Errorlevel_33-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-FD_2003_Errorlevel_33-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFAuerPaulHall2015" class="citation web cs1">Auer, Eric; Paul, Matthias R.; <a href="/wiki/Jim_Hall_(programmer)" class="mw-redirect" title="Jim Hall (programmer)">Hall, Jim</a> (2015-12-24) [2003-12-31]. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20151224202118/http://www.freedos.org/technotes/technote/207.html">"MS-DOS errorlevels"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.freedos.org/technotes/technote/207.html">the original</a> on 2015-12-24.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=MS-DOS+errorlevels&amp;rft.date=2015-12-24&amp;rft.aulast=Auer&amp;rft.aufirst=Eric&amp;rft.au=Paul%2C+Matthias+R.&amp;rft.au=Hall%2C+Jim&amp;rft_id=http%3A%2F%2Fwww.freedos.org%2Ftechnotes%2Ftechnote%2F207.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Caldera_1998_DELTREE101-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-Caldera_1998_DELTREE101_34-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul1998" class="citation book cs1">Paul, Matthias R. (1998-01-09). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190408145354/http://www.lookas.net/ftp/incoming/darbui/Justas/DRDOS/DELTREE.BAT"><i>DELTREE.BAT R1.01 Extended file and directory delete</i></a>. <a href="/wiki/Caldera,_Inc." class="mw-redirect" title="Caldera, Inc.">Caldera, Inc.</a> Archived from <a rel="nofollow" class="external text" href="http://www.lookas.net/ftp/incoming/darbui/Justas/DRDOS/DELTREE.BAT">the original</a> on 2019-04-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-04-08</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=DELTREE.BAT+R1.01+Extended+file+and+directory+delete&amp;rft.pub=Caldera%2C+Inc.&amp;rft.date=1998-01-09&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.lookas.net%2Fftp%2Fincoming%2Fdarbui%2FJustas%2FDRDOS%2FDELTREE.BAT&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Caldera_1998_NEW703-35"><span class="mw-cite-backlink">^ <a href="#cite_ref-Caldera_1998_NEW703_35-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Caldera_1998_NEW703_35-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20190408142232/http://www.lookas.net/ftp/incoming/darbui/Justas/DRDOS/WHATSNEW.TXT"><i>DR-DOS 7.03 WHATSNEW.TXT&#160;— Changes from DR-DOS 7.02 to DR-DOS 7.03</i></a>. <a href="/wiki/Caldera,_Inc." class="mw-redirect" title="Caldera, Inc.">Caldera, Inc.</a> 1998-12-24. Archived from <a rel="nofollow" class="external text" href="http://www.lookas.net/ftp/incoming/darbui/Justas/DRDOS/WHATSNEW.TXT">the original</a> on 2019-04-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-04-08</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=DR-DOS+7.03+WHATSNEW.TXT+%E2%80%94+Changes+from+DR-DOS+7.02+to+DR-DOS+7.03&amp;rft.pub=Caldera%2C+Inc.&amp;rft.date=1998-12-24&amp;rft_id=http%3A%2F%2Fwww.lookas.net%2Fftp%2Fincoming%2Fdarbui%2FJustas%2FDRDOS%2FWHATSNEW.TXT&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Paul_2001_COUNTRY-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-Paul_2001_COUNTRY_36-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPaul2001" class="citation web cs1">Paul, Matthias R. (2001-06-10) [1995]. <a rel="nofollow" class="external text" href="http://www.columbia.edu/~em36/wpdos/MatthiasPaulCPI.zip">"DOS COUNTRY.SYS file format"</a> (COUNTRY.LST file) (1.44&#160;ed.). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160420065252/http://www.columbia.edu/~em36/wpdos/MatthiasPaulCPI.zip">Archived</a> from the original on 2016-04-20<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-08-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=DOS+COUNTRY.SYS+file+format&amp;rft.edition=1.44&amp;rft.date=2001-06-10&amp;rft.aulast=Paul&amp;rft.aufirst=Matthias+R.&amp;rft_id=http%3A%2F%2Fwww.columbia.edu%2F~em36%2Fwpdos%2FMatthiasPaulCPI.zip&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-Allen_2005-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-Allen_2005_37-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFAllenAllen" class="citation web cs1">Allen, William; Allen, Linda. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110707113138/http://www.allenware.com/mcsw/errorlevels.zip">"Windows 95/98/ME ERRORLEVELs"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.allenware.com/mcsw/errorlevels.zip">the original</a> on 2011-07-07.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Windows+95%2F98%2FME+ERRORLEVELs&amp;rft.aulast=Allen&amp;rft.aufirst=William&amp;rft.au=Allen%2C+Linda&amp;rft_id=http%3A%2F%2Fwww.allenware.com%2Fmcsw%2Ferrorlevels.zip&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> <li id="cite_note-GNU_BASH-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-GNU_BASH_38-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/bash.html#Shell-Variables">"Shell Variables"</a>. <i>Bash Reference Manual</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Bash+Reference+Manual&amp;rft.atitle=Shell+Variables&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fbash.html%23Shell-Variables&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=21" title="Edit section: Further reading"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFChen2010" class="citation web cs1"><a href="/wiki/Raymond_Chen_(Microsoft)" class="mw-redirect" title="Raymond Chen (Microsoft)">Chen, Raymond</a> (2010-05-06). <a rel="nofollow" class="external text" href="https://blogs.msdn.microsoft.com/oldnewthing/20100506-00/?p=14133/">"What are these strange =C: environment variables?"</a>. <i>The New Old Thing</i>. <a href="/wiki/Microsoft" title="Microsoft">Microsoft</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180527163745/https://blogs.msdn.microsoft.com/oldnewthing/20100506-00/?p=14133%2F">Archived</a> from the original on 2018-05-27<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-05-27</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+New+Old+Thing&amp;rft.atitle=What+are+these+strange+%3DC%3A+environment+variables%3F&amp;rft.date=2010-05-06&amp;rft.aulast=Chen&amp;rft.aufirst=Raymond&amp;rft_id=https%3A%2F%2Fblogs.msdn.microsoft.com%2Foldnewthing%2F20100506-00%2F%3Fp%3D14133%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></li></ul> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Environment_variable&amp;action=edit&amp;section=22" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://manned.org/environ.7">environ(7)</a></code></span>&#58;&#160;user environment&#160;–&#160;<a href="/wiki/Linux" title="Linux">Linux</a> Programmer's <a href="/wiki/Man_page" title="Man page">Manual</a> – Overview, Conventions and Miscellanea</li> <li><span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://www.freebsd.org/cgi/man.cgi?query=environ&amp;sektion=7">environ(7)</a></code></span>&#160;–&#160;<a href="/wiki/FreeBSD" title="FreeBSD">FreeBSD</a> Miscellaneous Information <a href="/wiki/Man_page" title="Man page">Manual</a></li> <li><span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://keith.github.io/xcode-man-pages/environ.7.html">environ(7)</a></code></span>&#160;–&#160;<a href="/wiki/Darwin_(operating_system)" title="Darwin (operating system)">Darwin</a> and <a href="/wiki/MacOS" title="MacOS">macOS</a> Miscellaneous Information <a href="/wiki/Man_page" title="Man page">Manual</a></li> <li><span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://docs.oracle.com/cd/E88353_01/html/E37853/environ-7.html">environ(7)</a></code></span>&#160;–&#160;<a href="/wiki/Solaris_(operating_system)" class="mw-redirect" title="Solaris (operating system)">Solaris 11.4</a> Standards, Environments, Macros, Character Sets, and Miscellany Reference <a href="/wiki/Man_page" title="Man page">Manual</a></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20190427235415/http://environmentvariables.org/">"Environment Variables Wiki"</a>. Archived from <a rel="nofollow" class="external text" href="http://environmentvariables.org">the original</a> on 2019-04-27.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Environment+Variables+Wiki&amp;rft_id=http%3A%2F%2Fenvironmentvariables.org&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AEnvironment+variable" class="Z3988"></span></li> <li><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb776899%28v=vs.85%29.aspx">User Environment Variables</a></li> <li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20180511150138/https://www.setx.cc/">fix setx.exe not found bug</a></li></ul> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Unix_command-line_interface_programs_and_shell_builtins" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Unix_commands" title="Template:Unix commands"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Unix_commands" title="Template talk:Unix commands"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Unix_commands" title="Special:EditPage/Template:Unix commands"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Unix_command-line_interface_programs_and_shell_builtins" style="font-size:114%;margin:0 4em"><a href="/wiki/Unix" title="Unix">Unix</a> <a href="/wiki/Command-line_interface" title="Command-line interface">command-line interface</a> programs and <a href="/wiki/Shell_builtin" title="Shell builtin">shell builtins</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">File system</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Cat_(Unix)" title="Cat (Unix)">cat</a></li> <li><a href="/wiki/Chattr" title="Chattr">chattr</a></li> <li><a href="/wiki/Chmod" title="Chmod">chmod</a></li> <li><a href="/wiki/Chown" title="Chown">chown</a></li> <li><a href="/wiki/Chgrp" title="Chgrp">chgrp</a></li> <li><a href="/wiki/Cksum" title="Cksum">cksum</a></li> <li><a href="/wiki/Cmp_(Unix)" title="Cmp (Unix)">cmp</a></li> <li><a href="/wiki/Cp_(Unix)" title="Cp (Unix)">cp</a></li> <li><a href="/wiki/Dd_(Unix)" title="Dd (Unix)">dd</a></li> <li><a href="/wiki/Du_(Unix)" title="Du (Unix)">du</a></li> <li><a href="/wiki/Df_(Unix)" title="Df (Unix)">df</a></li> <li><a href="/wiki/File_(command)" title="File (command)">file</a></li> <li><a href="/wiki/Fuser_(Unix)" title="Fuser (Unix)">fuser</a></li> <li><a href="/wiki/Ln_(Unix)" title="Ln (Unix)">ln</a></li> <li><a href="/wiki/Ls" title="Ls">ls</a></li> <li><a href="/wiki/Mkdir" title="Mkdir">mkdir</a></li> <li><a href="/wiki/Mv_(Unix)" title="Mv (Unix)">mv</a></li> <li><a href="/wiki/Pax_(command)" title="Pax (command)">pax</a></li> <li><a href="/wiki/Pwd" title="Pwd">pwd</a></li> <li><a href="/wiki/Rm_(Unix)" title="Rm (Unix)">rm</a></li> <li><a href="/wiki/Rmdir" title="Rmdir">rmdir</a></li> <li><a href="/wiki/Split_(Unix)" title="Split (Unix)">split</a></li> <li><a href="/wiki/Tee_(command)" title="Tee (command)">tee</a></li> <li><a href="/wiki/Touch_(command)" title="Touch (command)">touch</a></li> <li><a href="/wiki/Type_(Unix)" title="Type (Unix)">type</a></li> <li><a href="/wiki/Umask" title="Umask">umask</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Processes</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/At_(command)" title="At (command)">at</a></li> <li><a href="/wiki/Job_control_(Unix)#Commands" title="Job control (Unix)">bg</a></li> <li><a href="/wiki/Cron" title="Cron">crontab</a></li> <li><a href="/wiki/Job_control_(Unix)#Commands" title="Job control (Unix)">fg</a></li> <li><a href="/wiki/Kill_(command)" title="Kill (command)">kill</a></li> <li><a href="/wiki/Nice_(Unix)" title="Nice (Unix)">nice</a></li> <li><a href="/wiki/Ps_(Unix)" title="Ps (Unix)">ps</a></li> <li><a href="/wiki/Time_(Unix)" title="Time (Unix)">time</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">User environment</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Env" title="Env">env</a></li> <li><a href="/wiki/Exit_(command)" title="Exit (command)">exit</a></li> <li><a href="/wiki/Logname" title="Logname">logname</a></li> <li><a href="/wiki/Mesg" title="Mesg">mesg</a></li> <li><a href="/wiki/Talk_(software)" title="Talk (software)">talk</a></li> <li><a href="/wiki/Tput" title="Tput">tput</a></li> <li><a href="/wiki/Uname" title="Uname">uname</a></li> <li><a href="/wiki/Who_(Unix)" title="Who (Unix)">who</a></li> <li><a href="/wiki/Write_(Unix)" title="Write (Unix)">write</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Text processing</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/AWK" title="AWK">awk</a></li> <li><a href="/wiki/Basename" title="Basename">basename</a></li> <li><a href="/wiki/Comm" title="Comm">comm</a></li> <li><a href="/wiki/Csplit" title="Csplit">csplit</a></li> <li><a href="/wiki/Cut_(Unix)" title="Cut (Unix)">cut</a></li> <li><a href="/wiki/Diff" title="Diff">diff</a></li> <li><a href="/wiki/Dirname" title="Dirname">dirname</a></li> <li><a href="/wiki/Ed_(text_editor)" class="mw-redirect" title="Ed (text editor)">ed</a></li> <li><a href="/wiki/Ex_(text_editor)" title="Ex (text editor)">ex</a></li> <li><a href="/wiki/Fold_(Unix)" title="Fold (Unix)">fold</a></li> <li><a href="/wiki/Head_(Unix)" title="Head (Unix)">head</a></li> <li><a href="/wiki/Iconv" title="Iconv">iconv</a></li> <li><a href="/wiki/Join_(Unix)" title="Join (Unix)">join</a></li> <li><a href="/wiki/M4_(computer_language)" title="M4 (computer language)">m4</a></li> <li><a href="/wiki/More_(command)" title="More (command)">more</a></li> <li><a href="/wiki/Nl_(Unix)" title="Nl (Unix)">nl</a></li> <li><a href="/wiki/Paste_(Unix)" title="Paste (Unix)">paste</a></li> <li><a href="/wiki/Patch_(Unix)" title="Patch (Unix)">patch</a></li> <li><a href="/wiki/Printf_(Unix)" title="Printf (Unix)">printf</a></li> <li><a href="/wiki/Read_(Unix)" title="Read (Unix)">read</a></li> <li><a href="/wiki/Sed" title="Sed">sed</a></li> <li><a href="/wiki/Sort_(Unix)" title="Sort (Unix)">sort</a></li> <li><a href="/wiki/Strings_(Unix)" title="Strings (Unix)">strings</a></li> <li><a href="/wiki/Tail_(Unix)" title="Tail (Unix)">tail</a></li> <li><a href="/wiki/Tr_(Unix)" title="Tr (Unix)">tr</a></li> <li><a href="/wiki/Troff" title="Troff">troff</a></li> <li><a href="/wiki/Uniq" title="Uniq">uniq</a></li> <li><a href="/wiki/Vi_(text_editor)" title="Vi (text editor)">vi</a></li> <li><a href="/wiki/Wc_(Unix)" title="Wc (Unix)">wc</a></li> <li><a href="/wiki/Xargs" title="Xargs">xargs</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Shell_builtin" title="Shell builtin">Shell builtins</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Alias_(command)" title="Alias (command)">alias</a></li> <li><a href="/wiki/Cd_(command)" title="Cd (command)">cd</a></li> <li><a href="/wiki/Echo_(command)" title="Echo (command)">echo</a></li> <li><a href="/wiki/Test_(Unix)" title="Test (Unix)">test</a></li> <li><a class="mw-selflink-fragment" href="#unset_command">unset</a></li> <li><a href="/wiki/Wait_(command)" title="Wait (command)">wait</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Searching</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Find_(Unix)" title="Find (Unix)">find</a></li> <li><a href="/wiki/Grep" title="Grep">grep</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Documentation</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Man_page" title="Man page">man</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Software_development" title="Software development">Software development</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Ar_(Unix)" title="Ar (Unix)">ar</a></li> <li><a href="/wiki/Ctags" title="Ctags">ctags</a></li> <li><a href="/wiki/Lex_(software)" title="Lex (software)">lex</a></li> <li><a href="/wiki/Make_(software)" title="Make (software)">make</a></li> <li><a href="/wiki/Nm_(Unix)" title="Nm (Unix)">nm</a></li> <li><a href="/wiki/Strip_(Unix)" title="Strip (Unix)">strip</a></li> <li><a href="/wiki/Yacc" title="Yacc">yacc</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Miscellaneous</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Bc_(programming_language)" title="Bc (programming language)">bc</a></li> <li><a href="/wiki/Cal_(command)" title="Cal (command)">cal</a></li> <li><a href="/wiki/Expr" title="Expr">expr</a></li> <li><a href="/wiki/System_V_printing_system" title="System V printing system">lp</a></li> <li><a href="/wiki/Od_(Unix)" title="Od (Unix)">od</a></li> <li><a href="/wiki/Sleep_(command)" title="Sleep (command)">sleep</a></li> <li><a href="/wiki/True_and_false_(commands)" title="True and false (commands)">true and false</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow hlist" colspan="2"><div> <ul><li><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <b>Categories</b> <ul><li><a href="/wiki/Category:Standard_Unix_programs" title="Category:Standard Unix programs">Standard Unix programs</a></li> <li><a href="/wiki/Category:Unix_SUS2008_utilities" title="Category:Unix SUS2008 utilities">Unix SUS2008 utilities</a></li></ul></li> <li><span class="noviewer" typeof="mw:File"><span title="List-Class article"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/16px-Symbol_list_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/23px-Symbol_list_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/31px-Symbol_list_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <b><a href="/wiki/List_of_POSIX_commands" title="List of POSIX commands">List</a></b></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Windows_command-line_programs_and_shell_builtins" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Windows_commands" title="Template:Windows commands"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Windows_commands" title="Template talk:Windows commands"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Windows_commands" title="Special:EditPage/Template:Windows commands"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Windows_command-line_programs_and_shell_builtins" style="font-size:114%;margin:0 4em"><a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Windows</a> <a href="/wiki/Command-line_interface" title="Command-line interface">command-line</a> programs and <a href="/wiki/Shell_builtin" title="Shell builtin">shell builtins</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/COMMAND.COM" title="COMMAND.COM">COMMAND.COM</a></li> <li><a href="/wiki/Cmd.exe" title="Cmd.exe">Command Prompt</a></li> <li><a href="/wiki/PowerShell" title="PowerShell">Windows PowerShell</a></li> <li><a href="/wiki/Recovery_Console" title="Recovery Console">Recovery Console</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">File system navigation</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Cd_(command)" title="Cd (command)">cd</a> (chdir)</li> <li><a href="/wiki/Dir_(command)" title="Dir (command)">dir</a></li> <li><a href="/wiki/Pushd_and_popd" title="Pushd and popd">popd</a></li> <li><a href="/wiki/Pushd_and_popd" title="Pushd and popd">pushd</a></li> <li><a href="/wiki/Tree_(command)" title="Tree (command)">tree</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">File management</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/ATTRIB" title="ATTRIB">attrib</a></li> <li><a href="/wiki/Cacls" title="Cacls">cacls</a></li> <li><a href="/wiki/Encrypting_File_System" title="Encrypting File System">cipher</a></li> <li><a href="/wiki/Compact_(computing)" class="mw-redirect" title="Compact (computing)">compact</a></li> <li><a href="/wiki/Copy_(command)" title="Copy (command)">copy</a></li> <li><a href="/wiki/Del_(command)" title="Del (command)">del</a> (erase)</li> <li><a href="/wiki/Deltree" class="mw-redirect" title="Deltree">deltree</a></li> <li><a href="/wiki/Cacls#icacls" title="Cacls">icacls</a></li> <li><a href="/wiki/Mkdir" title="Mkdir">mkdir</a> (md)</li> <li><a href="/wiki/Mklink" class="mw-redirect" title="Mklink">mklink</a></li> <li><a href="/wiki/Move_(command)" title="Move (command)">move</a></li> <li><a href="/wiki/Openfiles" class="mw-redirect" title="Openfiles">openfiles</a></li> <li><a href="/wiki/Recover_(command)" title="Recover (command)">recover</a></li> <li><a href="/wiki/Ren_(command)" title="Ren (command)">ren</a> (rename)</li> <li><a href="/wiki/Replace_(command)" title="Replace (command)">replace</a></li> <li><a href="/wiki/Rmdir" title="Rmdir">rmdir</a> (rd)</li> <li><a href="/wiki/Robocopy" title="Robocopy">robocopy</a></li> <li><a href="/wiki/Takeown" class="mw-redirect" title="Takeown">takeown</a></li> <li><a href="/wiki/XCOPY" title="XCOPY">xcopy</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Archiving</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Cabinet_(file_format)" title="Cabinet (file format)">expand</a></li> <li><a href="/wiki/Cabinet_(file_format)" title="Cabinet (file format)">extrac32</a></li> <li><a href="/wiki/Cabinet_(file_format)" title="Cabinet (file format)">extract</a></li> <li><a href="/wiki/Cabinet_(file_format)" title="Cabinet (file format)">makecab</a></li> <li><a href="/wiki/Pax_(command)" title="Pax (command)">pax</a></li> <li><a href="/wiki/Tar_(computing)" title="Tar (computing)">tar</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Disk management</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/CHKDSK" title="CHKDSK">chkdsk</a></li> <li><a href="/wiki/Convert_(command)" title="Convert (command)">convert</a></li> <li><a href="/wiki/Disk_Defragmenter_(Windows)" class="mw-redirect" title="Disk Defragmenter (Windows)">defrag</a></li> <li><a href="/wiki/Diskcomp" title="Diskcomp">diskcomp</a></li> <li><a href="/wiki/Diskcopy" title="Diskcopy">diskcopy</a></li> <li><a href="/wiki/Diskpart" title="Diskpart">diskpart</a></li> <li><a href="/wiki/Diskraid" class="mw-redirect" title="Diskraid">diskraid</a></li> <li><a href="/wiki/Shadow_Copy" title="Shadow Copy">diskshadow</a></li> <li><a href="/wiki/Drvspace" class="mw-redirect" title="Drvspace">drvspace</a></li> <li><a href="/wiki/Fdisk" title="Fdisk">fdisk</a></li> <li><a href="/wiki/Format_(command)" title="Format (command)">format</a></li> <li><a href="/wiki/Fsutil" class="mw-redirect" title="Fsutil">fsutil</a></li> <li><a href="/wiki/Label_(command)" title="Label (command)">label</a></li> <li><a href="/wiki/BitLocker" title="BitLocker">manage-bde</a></li> <li><a href="/wiki/Refsutil" class="mw-redirect" title="Refsutil">refsutil</a></li> <li><a href="/wiki/SUBST" title="SUBST">subst</a></li> <li><a href="/wiki/Microsoft_ScanDisk" title="Microsoft ScanDisk">scandisk</a></li> <li><a href="/wiki/SYS_(command)" title="SYS (command)">sys</a></li> <li><a href="/wiki/Vol_(command)" title="Vol (command)">vol</a></li> <li><a href="/wiki/Shadow_Copy" title="Shadow Copy">vssadmin</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Processes</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/At_(command)" title="At (command)">at</a></li> <li><a href="/wiki/Exit_(command)" title="Exit (command)">exit</a></li> <li><a href="/wiki/Kill_(command)" title="Kill (command)">kill</a></li> <li><a href="/wiki/Powercfg" title="Powercfg">powercfg</a></li> <li><a href="/wiki/Runas" title="Runas">runas</a></li> <li><a href="/wiki/Windows_service" title="Windows service">sc</a></li> <li><a href="/wiki/Windows_Task_Scheduler" title="Windows Task Scheduler">schtasks</a></li> <li><a href="/wiki/Shutdown_(computing)" title="Shutdown (computing)">shutdown</a></li> <li><a href="/wiki/Start_(command)" title="Start (command)">start</a></li> <li><a href="/wiki/Taskkill" class="mw-redirect" title="Taskkill">taskkill</a></li> <li><a href="/wiki/Tasklist" title="Tasklist">tasklist</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Registry</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/File_association" title="File association">assoc</a></li> <li><a href="/wiki/Ftype" title="Ftype">ftype</a></li> <li><a href="/wiki/Windows_Registry#Command_line_editing" title="Windows Registry">reg</a></li> <li><a href="/wiki/Windows_Registry#Command_line_editing" title="Windows Registry">regini</a></li> <li><a href="/wiki/Regsvr32" title="Regsvr32">regsvr32</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">User environment</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/CHCP_(command)" class="mw-redirect" title="CHCP (command)">chcp</a></li> <li><a href="/wiki/Cmdkey" class="mw-redirect" title="Cmdkey">cmdkey</a></li> <li><a href="/wiki/DATE_(command)" class="mw-redirect" title="DATE (command)">date</a></li> <li><a href="/wiki/Graftabl" class="mw-redirect" title="Graftabl">graftabl</a></li> <li><a href="/wiki/Mode_(command)" class="mw-redirect" title="Mode (command)">mode</a></li> <li><a href="/wiki/PATH_(variable)" title="PATH (variable)">path</a></li> <li><a class="mw-selflink-fragment" href="#DOS,_OS/2_and_Windows_(Command_Prompt)">set</a></li> <li><a href="/wiki/Setver" class="mw-redirect" title="Setver">setver</a></li> <li><a class="mw-selflink-fragment" href="#DOS,_OS/2_and_Windows_(Command_Prompt)">setx</a></li> <li><a href="/wiki/TIME_(command)" title="TIME (command)">time</a></li> <li><a href="/wiki/Title_(command)" title="Title (command)">title</a></li> <li><a href="/wiki/Ver_(command)" title="Ver (command)">ver</a></li> <li><a href="/wiki/Where_(command)" class="mw-redirect" title="Where (command)">where</a></li> <li><a href="/wiki/Whoami" title="Whoami">whoami</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">File contents</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Comp_(command)" title="Comp (command)">comp</a></li> <li><a href="/wiki/MS-DOS_Editor" title="MS-DOS Editor">edit</a></li> <li><a href="/wiki/Edlin" title="Edlin">edlin</a></li> <li><a href="/wiki/File_Compare" title="File Compare">fc</a></li> <li><a href="/wiki/Find_(Windows)" title="Find (Windows)">find</a></li> <li><a href="/wiki/Findstr" title="Findstr">findstr</a></li> <li><a href="/wiki/PRINT_(command)" title="PRINT (command)">print</a></li> <li><a href="/wiki/TYPE_(DOS_command)" title="TYPE (DOS command)">type</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Scripting_language" title="Scripting language">Scripting</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Choice_(command)" title="Choice (command)">choice</a></li> <li><a href="/wiki/Clipboard_(computing)" title="Clipboard (computing)">clip</a></li> <li><a href="/wiki/Windows_Script_Host" title="Windows Script Host">cscript</a></li> <li><a href="/wiki/DOSKEY" title="DOSKEY">doskey</a></li> <li><a href="/wiki/Echo_(command)" title="Echo (command)">echo</a></li> <li><a href="/wiki/For_loop" title="For loop">for</a></li> <li><a href="/wiki/Forfiles" title="Forfiles">forfiles</a></li> <li><a href="/wiki/Goto" title="Goto">goto</a></li> <li><a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">if</a></li> <li><a href="/wiki/More_(command)" title="More (command)">more</a></li> <li><a href="/wiki/Pause_(command)" class="mw-redirect" title="Pause (command)">pause</a></li> <li><a href="/wiki/Command-line_interface#Command_prompt" title="Command-line interface">prompt</a></li> <li><a href="/wiki/Comment_(computer_programming)" title="Comment (computer programming)">rem</a></li> <li><a href="/wiki/Timeout_(computing)" title="Timeout (computing)">timeout</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Networking</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Address_Resolution_Protocol" title="Address Resolution Protocol">arp</a></li> <li><a href="/wiki/Background_Intelligent_Transfer_Service" title="Background Intelligent Transfer Service">bitsadmin</a></li> <li><a href="/wiki/CURL" title="CURL">curl</a></li> <li><a href="/wiki/MAC_address" title="MAC address">getmac</a></li> <li><a href="/wiki/Hostname" title="Hostname">hostname</a></li> <li><a href="/wiki/Ipconfig" title="Ipconfig">ipconfig</a></li> <li><a href="/wiki/Nbtstat" class="mw-redirect" title="Nbtstat">nbtstat</a></li> <li><a href="/wiki/Net_(command)" title="Net (command)">net</a></li> <li><a href="/wiki/Netsh" title="Netsh">netsh</a></li> <li><a href="/wiki/Netstat" title="Netstat">netstat</a></li> <li><a href="/wiki/Nslookup" title="Nslookup">nslookup</a></li> <li><a href="/wiki/PathPing" title="PathPing">PathPing</a></li> <li><a href="/wiki/Ping_(networking_utility)" title="Ping (networking utility)">ping</a></li> <li><a href="/wiki/Rpcping" class="mw-redirect" title="Rpcping">rpcping</a></li> <li><a href="/wiki/Route_(command)" title="Route (command)">route</a></li> <li><a href="/wiki/Secure_copy_protocol" title="Secure copy protocol">scp</a></li> <li><a href="/wiki/Setspn" class="mw-redirect" title="Setspn">setspn</a></li> <li><a href="/wiki/Secure_file_transfer_program" title="Secure file transfer program">sftp</a></li> <li><a href="/wiki/OpenSSH" title="OpenSSH">ssh</a></li> <li><a href="/wiki/OpenSSH" title="OpenSSH">ssh-add</a></li> <li><a href="/wiki/Ssh-agent" title="Ssh-agent">ssh-agent</a></li> <li><a href="/wiki/Ssh-keygen" title="Ssh-keygen">ssh-keygen</a></li> <li><a href="/wiki/OpenSSH" title="OpenSSH">ssh-keyscan</a></li> <li><a href="/wiki/Traceroute" title="Traceroute">tracert</a></li> <li><a href="/wiki/Windows_Remote_Management" title="Windows Remote Management">winrm</a></li> <li><a href="/wiki/Windows_Remote_Management" title="Windows Remote Management">winrs</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Maintenance and care</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Auditpol" class="mw-redirect" title="Auditpol">auditpol</a></li> <li><a href="/wiki/Dispdiag" class="mw-redirect" title="Dispdiag">dispdiag</a></li> <li><a href="/wiki/Device_Manager#Driverquery_command" title="Device Manager">driverquery</a></li> <li><a href="/wiki/Event_Viewer" title="Event Viewer">eventcreate</a></li> <li><a href="/wiki/Event_Viewer" title="Event Viewer">eventtriggers</a></li> <li><a href="/wiki/Logman" class="mw-redirect" title="Logman">logman</a></li> <li><a href="/wiki/Mofcomp" class="mw-redirect" title="Mofcomp">mofcomp</a></li> <li><a href="/wiki/Windows_Installer" title="Windows Installer">msiexec</a></li> <li><a href="/wiki/NTBackup" title="NTBackup">ntbackup</a></li> <li><a href="/wiki/Pnpunattend" class="mw-redirect" title="Pnpunattend">pnpunattend</a></li> <li><a href="/wiki/Pnputil" class="mw-redirect" title="Pnputil">pnputil</a></li> <li><a href="/wiki/REAgentC" class="mw-redirect" title="REAgentC">REAgentC</a></li> <li><a href="/wiki/Relog" class="mw-redirect" title="Relog">relog</a></li> <li><a href="/wiki/System_File_Checker" title="System File Checker">sfc</a></li> <li><a href="/wiki/Sxstrace" class="mw-redirect" title="Sxstrace">sxstrace</a></li> <li><a href="/wiki/Systeminfo" class="mw-redirect" title="Systeminfo">systeminfo</a></li> <li><a href="/wiki/Tracerpt" class="mw-redirect" title="Tracerpt">tracerpt</a></li> <li><a href="/wiki/Typeperf" class="mw-redirect" title="Typeperf">typeperf</a></li> <li><a href="/wiki/W32tm" title="W32tm">w32tm</a></li> <li><a href="/wiki/WBAdmin" title="WBAdmin">WBAdmin</a></li> <li><a href="/wiki/Wecutil" class="mw-redirect" title="Wecutil">wecutil</a></li> <li><a href="/wiki/Wevtutil" class="mw-redirect" title="Wevtutil">wevtutil</a></li> <li><a href="/wiki/Winmgmt" class="mw-redirect" title="Winmgmt">winmgmt</a></li> <li><a href="/wiki/Windows_System_Assessment_Tool" title="Windows System Assessment Tool">winsat</a></li> <li><a href="/wiki/Windows_Management_Instrumentation_Command-line" class="mw-redirect" title="Windows Management Instrumentation Command-line">wmic</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Boot management</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Bcdedit" class="mw-redirect" title="Bcdedit">bcdedit</a></li> <li><a href="/wiki/Bootcfg" title="Bootcfg">bootcfg</a></li> <li><a href="/wiki/Bootsect" class="mw-redirect" title="Bootsect">bootsect</a></li> <li><a href="/wiki/Fixboot" class="mw-redirect" title="Fixboot">fixboot</a></li> <li><a href="/wiki/Fixmbr" class="mw-redirect" title="Fixmbr">fixmbr</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Software_development" title="Software development">Software development</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Debug_(command)" title="Debug (command)">debug</a></li> <li><a href="/wiki/Exe2bin" title="Exe2bin">exe2bin</a></li> <li><a href="/wiki/QBasic" title="QBasic">QBasic</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Miscellaneous</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Break_(command)" class="mw-redirect" title="Break (command)">break</a></li> <li><a href="/wiki/Cls_(command)" class="mw-redirect" title="Cls (command)">cls</a></li> <li><a href="/wiki/Windows_Assessment_and_Deployment_Kit" title="Windows Assessment and Deployment Kit">dism</a></li> <li><a href="/wiki/Dpath" title="Dpath">dpath</a></li> <li><a href="/wiki/Group_Policy" title="Group Policy">gpresult</a></li> <li><a href="/wiki/Group_Policy" title="Group Policy">gpupdate</a></li> <li><a href="/wiki/Help_(command)" title="Help (command)">help</a></li> <li><a href="/wiki/MSCDEX" title="MSCDEX">MSCDEX</a></li> <li><a href="/wiki/Pentium_FDIV_bug" title="Pentium FDIV bug">pentnt</a></li> <li><a href="/wiki/Tpmtool" class="mw-redirect" title="Tpmtool">tpmtool</a></li> <li><a href="/wiki/Tpmvscmgr" class="mw-redirect" title="Tpmvscmgr">tpmvscmgr</a></li> <li><a href="/wiki/Windows_Subsystem_for_Linux" title="Windows Subsystem for Linux">wsl</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/List_of_DOS_commands" title="List of DOS commands">List of DOS commands</a></li> <li><a class="mw-selflink selflink">Environment variables</a></li> <li><a href="/wiki/Windows_Support_Tools" title="Windows Support Tools">Windows Support Tools</a></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐5f67bcf949‐85zr5 Cached time: 20241127022441 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.919 seconds Real time usage: 1.076 seconds Preprocessor visited node count: 7962/1000000 Post‐expand include size: 164203/2097152 bytes Template argument size: 8595/2097152 bytes Highest expansion depth: 19/100 Expensive parser function count: 14/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 205085/5000000 bytes Lua time usage: 0.418/10.000 seconds Lua memory usage: 7605083/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 828.336 1 -total 39.32% 325.721 2 Template:Reflist 13.36% 110.657 9 Template:Cite_book 13.09% 108.470 26 Template:Cite_web 11.21% 92.835 2 Template:Navbox 10.86% 89.923 1 Template:Unix_commands 9.14% 75.698 1 Template:More_citations_needed 8.26% 68.451 120 Template:Anchor 7.38% 61.111 1 Template:Ambox 6.99% 57.890 1 Template:Short_description --> <!-- Saved in parser cache with key enwiki:pcache:idhash:349504-0!canonical and timestamp 20241127022441 and revision id 1259795430. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Environment_variable&amp;oldid=1259795430">https://en.wikipedia.org/w/index.php?title=Environment_variable&amp;oldid=1259795430</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Windows_commands" title="Category:Windows commands">Windows commands</a></li><li><a href="/wiki/Category:Operating_system_technology" title="Category:Operating system technology">Operating system technology</a></li><li><a href="/wiki/Category:Environment_variables" title="Category:Environment variables">Environment variables</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:CS1_errors:_periodical_ignored" title="Category:CS1 errors: periodical ignored">CS1 errors: periodical ignored</a></li><li><a href="/wiki/Category:CS1_German-language_sources_(de)" title="Category:CS1 German-language sources (de)">CS1 German-language sources (de)</a></li><li><a href="/wiki/Category:Webarchive_template_archiveis_links" title="Category:Webarchive template archiveis links">Webarchive template archiveis links</a></li><li><a href="/wiki/Category:Articles_needing_additional_references_from_May_2023" title="Category:Articles needing additional references from May 2023">Articles needing additional references from May 2023</a></li><li><a href="/wiki/Category:All_articles_needing_additional_references" title="Category:All articles needing additional references">All articles needing additional references</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li><li><a href="/wiki/Category:Use_dmy_dates_from_April_2019" title="Category:Use dmy dates from April 2019">Use dmy dates from April 2019</a></li><li><a href="/wiki/Category:Use_list-defined_references_from_January_2022" title="Category:Use list-defined references from January 2022">Use list-defined references from January 2022</a></li><li><a href="/wiki/Category:All_articles_with_unsourced_statements" title="Category:All articles with unsourced statements">All articles with unsourced statements</a></li><li><a href="/wiki/Category:Articles_with_unsourced_statements_from_August_2014" title="Category:Articles with unsourced statements from August 2014">Articles with unsourced statements from August 2014</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 27 November 2024, at 02:24<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Environment_variable&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5cd4cd96d5-8p2kf","wgBackendResponseTime":158,"wgPageParseReport":{"limitreport":{"cputime":"0.919","walltime":"1.076","ppvisitednodes":{"value":7962,"limit":1000000},"postexpandincludesize":{"value":164203,"limit":2097152},"templateargumentsize":{"value":8595,"limit":2097152},"expansiondepth":{"value":19,"limit":100},"expensivefunctioncount":{"value":14,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":205085,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 828.336 1 -total"," 39.32% 325.721 2 Template:Reflist"," 13.36% 110.657 9 Template:Cite_book"," 13.09% 108.470 26 Template:Cite_web"," 11.21% 92.835 2 Template:Navbox"," 10.86% 89.923 1 Template:Unix_commands"," 9.14% 75.698 1 Template:More_citations_needed"," 8.26% 68.451 120 Template:Anchor"," 7.38% 61.111 1 Template:Ambox"," 6.99% 57.890 1 Template:Short_description"]},"scribunto":{"limitreport-timeusage":{"value":"0.418","limit":"10.000"},"limitreport-memusage":{"value":7605083,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-5f67bcf949-85zr5","timestamp":"20241127022441","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Environment variable","url":"https:\/\/en.wikipedia.org\/wiki\/Environment_variable","sameAs":"http:\/\/www.wikidata.org\/entity\/Q400857","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q400857","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2003-10-25T16:22:26Z","dateModified":"2024-11-27T02:24:31Z","headline":"dynamic value that affects the behavior of processes on a computer"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10