in reply to Windows 10 Command Prompt
Actually exit exits perl program and returns value, it doesn't close terminals. It looks as if you opened cmd then ran perl program which will kill cmd. You can run program using perl interpreter directly which will close terminal immediately after finishing script. You can also add something like this but this will kill all command prompts.
system("taskkill /im cmd.exe /f");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Windows 10 Command Prompt
by marto (Cardinal) on Apr 28, 2020 at 21:41 UTC | |
|
Re^2: Windows 10 Command Prompt
by PilotinControl (Pilgrim) on Dec 24, 2020 at 15:06 UTC |