Jump to content

Cmd or script to close programs + shutdown


Recommended Posts

Posted (edited)

If I wanted to leave my computer on for a few hours then have it close all its programs and shutdown how would I do so?

EDIT: Possible to have it do all this after a certain amount of time?

Edited by tal ormanda

Posted (edited)

If you use XP there is a program called PowerOff that is really good for this...I suggest you also use a program called process.exe (also works on Vista) to close the program instead of killing it with tskill or taskkill

If you have Vista or Windows 7 you dont need poweroff you can use the task sheduler to create a task to close a program (using process.exe) the shutting down your PC (using shutdown.exe thats comes with windows) at a certain time of day

Here is what I how I use the task sheduler to shurt down my PC at a certain time of day

shutdowns.jpg

Edited by ricktendo64

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...