Close Cmd/Terminal window after script execution

7 views
Skip to first unread message

bitlischieber

unread,
Feb 10, 2026, 10:47:32 AM (13 days ago) Feb 10
to OneCommander
I use a few scripts to automate various tasks, such as opening VS Code and comparing folders with WinMerge.

What’s a little annoying to me is that the command prompt or terminal window stays open after the script finishes.

I’ve tried adding, for example, an exit command at the end of the script, but that didn’t help. I also tried removing the --noexit option from the "PowerShell7Arguments"/"PowerShellArguments" setting, which didn’t make a difference either.

Is there a way to tell the command window to close automatically after the script completes?


Reply all
Reply to author
Forward
0 new messages