I keep getting the error "process exited with code 1" when trying to run a cmd script

Anonymous
2025-04-08T09:44:51+00:00

I downloaded a CMD script for a game, but everytime i run it (with administrator), the Command prompt flashes for half a second and instantly closes. I managed to capture what it says before closing, and it simply says this at the end and closes

[process exited with code 1 (0x00000001)]

You can now close this terminal with Ctrl+D, or press Enter to restart.

I tried a common fix for this found online that involves the powershell command:

C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /fAnd the CMD command (with administrator): sfc /scannow

Neither of those helped at all. the problem still persisted.

One thing to note, my "Command Prompt" key is completely missing from my Registry editor. it should normally be in Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor

But its not there at all. I'm running on Windows 11 pro 24H2, OS build 26100.3476
I assume I'm up to date.

Please let me know if you can help

PS. I also tried running the same command from a new profile on my device, also didn't work.

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote

7 answers

Sort by: Most helpful
  1. Anonymous
    2025-04-08T10:31:25+00:00

    Alright, will do.

    Thank you for your help

    0 comments No comments
  2. Ramesh Srinivasan 69,010 Reputation points Independent Advisor
    2025-04-08T10:34:00+00:00

    You're welcome.

    Regards,

    0 comments No comments