why exit or exit /b in batch file in Windows Terminal The system cannot find the batch label specified - exit #20247

Open
opened 2026-01-31 07:07:59 +00:00 by claunia · 0 comments
Owner

Originally created by @candrapersada on GitHub (Jul 17, 2023).

why when using Windows Terminal + batch file there is an error when using exit?

The system cannot find the batch label specified - exit

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

https://ss64.com/nt/exit.html

Originally created by @candrapersada on GitHub (Jul 17, 2023). why when using `Windows Terminal` + `batch file` there is an error when using `exit`? ``` The system cannot find the batch label specified - exit [process exited with code 1 (0x00000001)] You can now close this terminal with Ctrl+D, or press Enter to restart. ``` https://ss64.com/nt/exit.html
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 07:08:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20247