Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After change sys PATH variable,the running ConEmu open new tab with"'cmd' is not recognized as an internal or external command, operable program or batch file" #2032

Closed
zhangmx opened this issue Dec 16, 2019 · 2 comments

Comments

@zhangmx
Copy link

zhangmx commented Dec 16, 2019

Versions

ConEmu build: 191012 preview 64
OS version: Windows 10/x64
Used shell version : cmd

Problem description

Open a ConEmu window. Then, edit system environment PATH variable like add/delete some path and save it. By opening a new cmd ConEmu tab, there will be an error :

'cmd' is not recognized as an internal or external command, operable program or batch file

Steps to reproduce

  1. Open a ConEmu window.
  2. Edit and save system environment PATH variable.
  3. Open a new 'cmd' ConEmu tab.

Actual results

'cmd' is not recognized as an internal or external command, operable program or batch file

Expected results

Common cmd console.

Additional files

ConEmu.xml.txt
ConEmuLogs.zip
screenshots-tab1-normal
screenshots-tab2-error

@dogancelik
Copy link

I confirm this.

It happened to me after I created a .NET Core project for the first time and Visual Studio 2019 added:

  • C:\Users\dogan\.dotnet\tools to my user PATH variable
  • C:\Program Files\dotnet\ to my system PATH variable

And my already running ConEmu, started to give me this error every time I launched a new task "cmd" (Run as user). Although I didn't get an error in task "cmd-Admin".

Tasks used:

  • {Shells::cmd}cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd"
  • {Shells::cmd-Admin}cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" -new_console:a

ConEmu version: 191012

@Maximus5
Copy link
Owner

Maximus5 commented Jan 4, 2021

dup gh-468

@Maximus5 Maximus5 closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants