{"id":59342,"date":"2023-07-12T10:30:07","date_gmt":"2023-07-12T05:00:07","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=59342"},"modified":"2026-03-09T12:15:22","modified_gmt":"2026-03-09T06:45:22","slug":"commands-not-recognized-internal-external-command","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/commands-not-recognized-internal-external-command\/","title":{"rendered":"Commands not recognized as an internal or external command in Command Prompt"},"content":{"rendered":"<p>When you run a command-line in a Command Prompt window, the following error may appear:<\/p>\n<pre class=\"err\">'help' is not recognized as an internal or external command, operable program or batch file.<\/pre>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/commands-not-recognized-cmd.png\" alt=\"command prompt commands not recognized\" width=\"711\" height=\"156\" class=\"alignnone size-full wp-image-59346\" \/><\/p>\n<p>This happens even if the respective executable file is located in the Windows or System32 folder, such as help (help.exe), xcopy (xcopy.exe), findstr (findstr.exe), etc. However, you can run the file by mentioning the full path &#8212; e.g., c:\\windows\\system32\\help.exe.<\/p>\n<p>The internal commands, such as cd, md, del, copy, and erase, may work fine.<\/p>\n<h2>Cause<\/h2>\n<p>The above error occurs if the Windows or Windows\\System32 folder is not included in the PATH system environment variable.<\/p>\n<p>By default, in a standard Windows installation, the following folders are included in the System <code>PATH<\/code>.<\/p>\n<ul>\n<li>%SystemRoot%\\system32<\/li>\n<li>%SystemRoot%<\/li>\n<li>%SystemRoot%\\System32\\Wbem<\/li>\n<li>%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\<\/li>\n<li>%SYSTEMROOT%\\System32\\OpenSSH\\<\/li>\n<\/ul>\n<p>And the following folder is included in the User <code>PATH<\/code>:<\/p>\n<ul>\n<li>%USERPROFILE%\\AppData\\Local\\Microsoft\\WindowsApps<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> Another possibility is that the C:\\Windows and C:\\Windows\\System32 are pushed to the end of the PATH system environment variable, which can cause problems when running a command in the Command Prompt window.<\/p>\n<h2>Resolution<\/h2>\n<p>To fix the &#8220;not recognized as an internal or external command&#8221; error in Command Prompt, add Windows and Windows\\System32 to the PATH environment.<\/p>\n<h3>Add Windows and System32 to the PATH environment<\/h3>\n<ol>\n<li>Right-click Start, and click Run. Type &#8220;<code>sysdm.cpl<\/code>&#8221; and click OK. This launches the System Properties dialog.<\/li>\n<li>Select the &#8220;Advanced&#8221; tab, and click &#8220;Environment Variables..&#8221;<\/li>\n<li>Under &#8220;System variables,&#8221; double-click &#8220;<strong>Path<\/strong>.&#8221;<\/li>\n<li>In the &#8220;Edit environment variable&#8221; dialog, add each of the directories listed above.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26689\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/path-env-variable-sysdm.png\" alt=\"path environment variable - system properties\" width=\"678\" height=\"331\" \/><\/li>\n<li>If you want to add additional folder locations &#8212; e.g., &#8220;C:\\Program Files\\Java,&#8221; feel free to add them.<\/li>\n<li>Also, if you want, you can configure the user path settings by double-clicking &#8220;Path&#8221; under &#8220;User variables.&#8221;<\/li>\n<li>Click OK, OK, OK to close the dialog boxes.<\/li>\n<li>Restart Windows for the changes to take effect for all apps and services.<\/li>\n<\/ol>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/restore-path-environment-variable-deleted\/\">How to Recover PATH Variable After Deleting it Accidentally<\/a><\/div>\n<hr \/>\n<h3>What if they&#8217;re already included in the PATH?<\/h3>\n<p>If %SystemRoot%\\system32 and %SystemRoot% are already included in PATH and yet the problem occurs, make sure you <strong>move<\/strong> the two items to the top of the list.<\/p>\n<p><strong>For example<\/strong>, your PATH variable may look like the following:<\/p>\n<pre style=\"white-space: pre-wrap;\">Path=C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;%C_EM64T_REDIST11%bin\\Intel64;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VSA\\10.0\\VsaEnv;%INTEL_DEV_REDIST%redist\\intel64\\mpirt;%INTEL_DEV_REDIST%redist\\intel64\\compiler;%INTEL_DEV_REDIST%redist\\ia32\\mpirt;%INTEL_DEV_REDIST%redist\\ia32\\compiler;C:\\ProgramData\\Oracle\\Java\\javapath;%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\chocolatey\\bin;%SYSTEMROOT%\\System32\\OpenSSH\\;C:\\Program Files (x86)\\CCLRC ISIS Facility\\Open GENIE\\system;C:\\Program Files (x86)\\Common Files\\Autodesk Shared\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Atomes;C:\\Users\\ach25\\AppData\\Local\\Microsoft\\WindowsApps;<\/pre>\n<p>As you can see, the two entries, <code>%SystemRoot%\\system32<\/code> and <code>%SystemRoot%<\/code>, are pushed to the middle\/end of the PATH variable. This can cause an error when running a command in the Command Prompt window.<\/p>\n<h4>Move Windows and Windows\\System32 to the top<\/h4>\n<p>To fix the issue,\u00a0 move Windows and Windows\\System32 to the top of the PATH environment variable.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-59345\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order.png\" alt=\"move windows and system32 to the top of the path variable\" width=\"750\" height=\"666\" \/><\/p>\n<p><strong>Ensure<\/strong> that the top 5 items in the system PATH variable are the following:<\/p>\n<ul>\n<li>%SystemRoot%\\system32<\/li>\n<li>%SystemRoot%<\/li>\n<li>%SystemRoot%\\System32\\Wbem<\/li>\n<li>%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\<\/li>\n<li>%SYSTEMROOT%\\System32\\OpenSSH\\<\/li>\n<\/ul>\n<p>Additionally, you may want to remove obsolete entries, if any, from the PATH variable.<\/p>\n<p>After moving the stock entries to the top, the dialog appears like below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-59344\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order-2.png\" alt=\"move windows and system32 to the top of the path variable\" width=\"752\" height=\"674\" \/><\/p>\n<p>That should do the trick!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run a command-line in a Command Prompt window, the following error may appear: &#8216;help&#8217; is not recognized as an internal or external command, operable program or batch file.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,869],"tags":[191],"class_list":["post-59342","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-error-messages"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":30783,"url":"https:\/\/www.winhelponline.com\/blog\/dism-exe-not-recognized-cmdlet-ps\/","url_meta":{"origin":59342,"position":0},"title":"[Error] Dism.exe is not recognized as the name of a cmdlet","author":"Ramesh","date":"December 11, 2022","format":false,"excerpt":"When you run a DISM.exe command-line in PowerShell, the command may not be recognized. The following error is shown when you do so: dism.exe : The term 'dism.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"dism.exe not recognized - add system32 to PATH","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":117,"url":"https:\/\/www.winhelponline.com\/blog\/register-dlls-elevated-using-the-context-menu\/","url_meta":{"origin":59342,"position":1},"title":"Register and Unregister DLLs Elevated via Right-click Context Menu","author":"Ramesh","date":"March 25, 2008","format":false,"excerpt":"This post tells you how to add register and unregister commands to the right-click menu for DLL and OCX files in Windows Vista, 7, 8 and 10. To register a DLL or OCX file, you usually need to run regsvr32.exe from an elevated Command Prompt. Registering system DLLs from a\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"regsvr32 error 0x80004005","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/regsvr32-error-80004005.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1252,"url":"https:\/\/www.winhelponline.com\/blog\/error-no-such-interface-supported-personalize-option-windows-7\/","url_meta":{"origin":59342,"position":2},"title":"Error &#8220;No such interface supported&#8221; when Accessing Personalize Context Menu Option in Windows 7","author":"Ramesh","date":"September 26, 2013","format":false,"excerpt":"When you right-click on the Desktop and choose Personalize, the error \"No such interface supported\" is shown and the Personalize window doesn't load.Registering the file actxprxy.dll resolves the problem. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.Type the following\u2026","rel":"","context":"In &quot;Windows 7&quot;","block_context":{"text":"Windows 7","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-7\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/personalize-actxprxy.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2433,"url":"https:\/\/www.winhelponline.com\/blog\/cascading-menu-jump-lists-issue-windows-10\/","url_meta":{"origin":59342,"position":3},"title":"Cascading Menu and File Explorer Jump Lists Issue in Windows 10","author":"Ramesh","date":"March 28, 2016","format":false,"excerpt":"When you implement Cascading Menus in File Folders (Directory) using the SubCommands or ExtendedSubCommands registry keys in Windows 10, an interesting thing happens. The last item in your Cascading menu gets executed when you right-click Pinned File Explorer shortcut in the Taskbar, and click on a folder in the Jump\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":47665,"url":"https:\/\/www.winhelponline.com\/blog\/system32-huge-disk-space-junk-exe-files\/","url_meta":{"origin":59342,"position":4},"title":"System32 Folder Occupies 300 GB; Filled with Gibberish EXE Files","author":"Ramesh","date":"May 21, 2023","format":false,"excerpt":"Of late, many users are complaining that the System32 folder is consuming colossal disk space (e.g., 150 GB - 300 GB) all of a sudden. On a user's computer, more than 200,000 .exe files were generated. Those files were almost generated every minute, consuming over 200 GB on the C\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"system32 gibberish exe filled up microstar international","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/system32-junk-exe-msi-service-treesize.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/system32-junk-exe-msi-service-treesize.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/system32-junk-exe-msi-service-treesize.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/system32-junk-exe-msi-service-treesize.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":235,"url":"https:\/\/www.winhelponline.com\/blog\/error-there-is-no-script-engine-for-file-extension-when-running-vbs-files\/","url_meta":{"origin":59342,"position":5},"title":"[Fix] Can&#8217;t find Script Engine Vbscript, and &#8220;no script engine for .vbs&#8221;","author":"Ramesh","date":"April 27, 2008","format":false,"excerpt":"When you run a VBScript or .msi setup file that runs a VBScript, you may receive one of the following errors: Can't find script engine \"VBScript\" for script C:\\ProgramData\\Microsoft\\Windows\\OFFICEICON.vbs There is no script engine for file extension \".vbs\". This happens if the vbscript.dll module is not registered correctly or the\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/59342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=59342"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/59342\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=59342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=59342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=59342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}