How to have a program close after starting up? How to have minecraft close after it starts?

How to have a program close after starting up? How to have minecraft close after it starts?

Added (1). I want to know how to have minecraft close after it starts. I don't know where to put the file( what kind i don't know also) and the code for it. It should work so that when my brother opens minecraft to play the file force closes it. He plays all the time and its annoying the whole family, so its kinda justified.

Instead of doing that, target the Minecraft executable to shut down every time he clicks on it. You can always revert the changes if you want to.

First create a separate shortcut by right clicking the Minecraft file, and press "Create shortcut". Once you create the shortcut, hide the actual file somewhere else so he can't find it.

Then rename the short from "Minecraft - Shortcut" to "Minecraft" to make it look real.

Then right click on the shortcut and hit properties on the very bottom.

You will see something that says:

Target: C://blah blah blah

Highlight that and change it from "C://blah blah" to " %windir%\system32\Shutdown.exe -s -t 00"

This is will shutdown the computer.

However, when you change the target, it will delete the icon. But if you have it named Minecraft, you could get away from it.