简体   繁体   中英

How would I make batch code running in a command prompt window unclosable?

I'm looking to make a file that when running it constantly kills chrome so you cannot run it (this is just for fun) and I'm trying to make it so it is not possible to just close it by hitting the X button

Would it be possible?

cls
:kill
taskkill /IM chrome.exe
goto kill

Well Windows command prompt don't let you do that.

However another languages like Python can do that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM