Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to Auto Shutdown and run program on Windows7

13 Aug 2010   #1

How to Auto Shutdown and run program on Windows7

I like enjoy music before sleep use my PC, but always forget to shut down my PC with windows 7 installed, and another thing is I want to run some program automatically like play a song at 2:30 PM, do you have any idea or tools can do this?
Thank you so much!

PS: I found this software, it looks great to do this:
Windows 7 Shutdown Assistant-

My System SpecsSystem Spec
13 Aug 2010   #2

Windows 7

I'm using a tool for the autoshutdown, but it's on another computer with Windows XP.
One very easy option would be to execute "shutdown /s/t 'time-in-sec'" . Just create a shortcut on your desktop and type this line and choose an apropriate time (maybe 30000 for 50 minutes)
Your other problem could be solved by the taskplaner integrated in Windows, but I don't know the exactly menu right now and I have to hurry because my computer will shutdown in a few seconds because I checked the upper command and have forgotten how to stop the countdown
My System SpecsSystem Spec
13 Aug 2010   #3

XP / Win7 x64 Pro

Create a batch file with the following:

schtasks /create /tn "Auto Shutdown" /tr "shutdown /s /t 0" /sc once /sd <date-to-run-task> /st <time-to-run-task>

You'll obviously have to fill in the date and time to run this auto shutdown and then save the .bat file. To schedule it, just right click on the .bat file and run as administrator. It will create this one-time task (unless you want to specifically shut it down every night at the same time, the you can do the "/sc daily" type task) and once it runs once will be done.

Here's a link to the command line options for scheduled tasks:
Microsoft Corporation

As for playing music, if you are using the music as an alarm, I use the simple and lightweight program called "Easy MP3 Alarm" that you can find online.
My System SpecsSystem Spec

13 Aug 2010   #4

Windows 7 32 bit

There's a ton of freebies out there. Look through comments to find one that's both easy to use and reliable. A search on Softpedia brings up a bunch:

Searching for: auto shutdown - Softpedia
My System SpecsSystem Spec
13 Aug 2010   #5

Windows 7

Make a batch file.
My System SpecsSystem Spec
13 Aug 2010   #6


Thanks for all your help!
My System SpecsSystem Spec
25 Sep 2014   #7

Windows 7 Home Premium 64bit

this batch file will run even i play youtube ?
because even screen saver will not play will you are playing youtube

Please PM or email me... i badly needed your help.
Thank you in advance
My System SpecsSystem Spec

 How to Auto Shutdown and run program on Windows7

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Black Screen then auto shutdown
Hello I am trying to troubleshoot a work computer and it keeps on going to a black screen and shutting down periodically this was in the event viewer. I forgot how to attach a dump file so if someone can let me know how to do that it would be great. The computer has rebooted from a bugcheck....
BSOD Help and Support
Auto Update errors, 3 recommended updates Windows7 Home Prem x64
Emachines EL1352G Processor AMD Sempron 145 / 2.8 GHz Memory 2.0 GB Hard Drive 500.0 GB - 7200.0 rpm Operating System Microsoft Windows 7 Home Premium 64-bit Edition Optical Drive DVD±RW (±R DL) / DVD-RAM Graphics Processor NVIDIA GeForce 6150 SE Graphics Controller Integrated ...
Windows Updates & Activation
auto shutdown when i try to install W7
I try to install W7 on acer aspire 5536 but when i get windows loading files or when i need to press any key to start up the windows install it just shutdown. Now it has vista installed. What could be the problem? On acer website it says that it's compatible with W7
General Discussion
Auto shutdown and startup
Hi all, I'm looking for a program that will power up and shut-down my pc at specific times. Anyone got any recommendations? Cheers
Defragging problem with auto shutdown?
Is there a good defragment program out there that is free and that has automatic shutdown?
Windows Auto Shutdown - Help
My windows shutdown automatically. The problem appeared just after I connected iPod but it has now become common. Now my windows shutdown even if the iPod is not connected. I even reinstalled my Windows 7 but the problem not solved. It proves that it is not a software problem, it should be hardware...
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 18:25.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App