Schedule windows to close a program

On windows If we need to close a program (maybe a java) at a certain time , use this command :

at 13:29 taskkill /F /IM 6976

6976 is the process id (you can find it on task manager - processes tab. If not seen , than on the top menu choose View-Select Coloumns and mark PID (processID) )

to cancel all scheduled commands

at /delete

you need to open cmd window as administrator to run at command. (startMenu-accessories right click on command window and choose "run as admin"

hop this helps.

Comments

Popular posts from this blog

Connect via SSH without a password from MacOS to Linux with an SSHKEY

Read and Write Files in Java

Install Mac OS on windows laptop