Cmd issue #19477

Closed
opened 2026-01-31 06:44:34 +00:00 by claunia · 2 comments
Owner

Originally created by @CODE-A-DUCK on GitHub (Mar 1, 2023).

Some error when I open terminal
[error 2147942402 (0x80070002) when launching `%SystemRoot%\System32\cmd.exe']

I have changed enviroment(path) but it still not working on me

Originally created by @CODE-A-DUCK on GitHub (Mar 1, 2023). Some error when I open terminal **[error 2147942402 (0x80070002) when launching `%SystemRoot%\System32\cmd.exe']** I have changed enviroment(path) but it still not working on me
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Author-FeedbackIssue-Docs labels 2026-01-31 06:44:35 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 1, 2023):

That error code is ERROR_FILE_NOT_FOUND, though, it's weird to me that it's displaying %SystemRoot% literally, not expanded. Is that environment variable configured correctly?

Does CMD.exe work from the run dialog / start menu? Does any other shell work/?

If you change the commandline in the settings to C:\windows\system32\cmd.exe (instead of %SystemRoot%\System32\cmd.exe), does it work?

@zadjii-msft commented on GitHub (Mar 1, 2023): That error code is `ERROR_FILE_NOT_FOUND`, though, it's weird to me that it's displaying `%SystemRoot%` literally, not expanded. Is that environment variable configured correctly? Does CMD.exe work from the run dialog / start menu? Does any other shell work/? If you change the `commandline` in the settings to `C:\windows\system32\cmd.exe` (instead of `%SystemRoot%\System32\cmd.exe`), does it work?
Author
Owner

@zadjii-msft commented on GitHub (Mar 27, 2023):

Hey all, our bot's been acting up the last few weeks. This issue has been marked as requiring author feedback, but hasn't had any activity in the last week. We're gonna close it to tidy up. Feel free to continue the discssion in the comments - we can always reopen if new information comes to light. Thanks!

@zadjii-msft commented on GitHub (Mar 27, 2023): Hey all, our bot's been acting up the last few weeks. This issue has been marked as requiring author feedback, but hasn't had any activity in the last week. We're gonna close it to tidy up. Feel free to continue the discssion in the comments - we can always reopen if new information comes to light. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19477