I downloaded a CMD script for a game, but everytime i run it, 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
Please Right Click on CMD and select RUN AS ADMINISTRATOR.
Cheer.