Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Windows 10 Command Prompt

by Marek1415 (Acolyte)
on Apr 28, 2020 at 20:39 UTC ( [id://11116171]=note: print w/replies, xml ) Need Help??


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

    This is at best unwise, this will silently forcibly kill all instances of cmd.exe, you have no idea what the user may be doing on their system.

Re^2: Windows 10 Command Prompt
by PilotinControl (Pilgrim) on Dec 24, 2020 at 15:06 UTC

    This was tested and does not work under Windows 10.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-28 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found