Welcome Guest.   Make a donation to an author on the site September 01, 2014, 06:24:45 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Run a bat-file on system shutdown  (Read 6060 times)
Cotton
Participant
*
Posts: 3


View Profile WWW Give some DonationCredits to this forum member
« on: August 21, 2009, 06:19:49 PM »

I'm looking for a application that can run a bat-file when Windows Vista is going to shutdown/restart.

Does a application like this exist or would anyone like to create it?  Kiss
Logged
MilesAhead
Member
**
Posts: 4,794



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: August 21, 2009, 07:33:57 PM »

This program will run a program before shutting down, but it's initiating the shutdown, not just detecting it.

http://www.autoitscript.c...mp;p=617608&hl=detect system shutdown&fromsearch=1&#entry617608

Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
scancode
Honorary Member
**
Posts: 636



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: August 21, 2009, 07:57:41 PM »

would anyone like to create it?  Kiss
* scancode raises a hand. Give me a couple minutes.
I can't get it to work Sad
Sorreh!
« Last Edit: August 21, 2009, 09:55:10 PM by scancode » Logged

MilesAhead
Member
**
Posts: 4,794



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: August 21, 2009, 11:54:33 PM »

Cotton please give more info.  Can this be a program or batch file that runs your command, then shuts down?  Or does it have to detect shutdown and run your program?

If the former, just make a .cmd file with 2 commands
YourCommand.exe
shutdown /t 60

to shutdown one minute after the first command completes.
To run the first command without waiting(something quick) use the Start command as in

start yourapp.exe
shutdown yadda yadda

Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: August 21, 2009, 11:56:22 PM »

you can try either Xecutor (free for non-commercial use) or LastChance (freeware).
Logged

MilesAhead
Member
**
Posts: 4,794



View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: August 22, 2009, 05:05:24 PM »

Looks like DShutdown also has this option:

http://dimio.altervista.org/eng/

I've been using DTaskManager and it seems well done so I might as well give DShutdown a try.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
shaunpud
Participant
*
Posts: 1


View Profile Give some DonationCredits to this forum member
« Reply #6 on: August 24, 2009, 04:36:40 AM »

Just use Group Policy

Example here
Logged
MilesAhead
Member
**
Posts: 4,794



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: August 24, 2009, 03:53:49 PM »

Just use Group Policy

Example here

Not all versions of Windows have Group Policy Editor.  On my Windows7 eval it's Ultimate so I can keep Windows Media Player and IE from starting just using Group Policy.  On my Vista64 Home Premium I don't have it, so I have to employ a process monitor that kills them as soon as they rear their ugly heads.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Conquer
Honorary Member
**
Posts: 50



View Profile Give some DonationCredits to this forum member
« Reply #8 on: August 27, 2009, 11:12:56 AM »

I'm looking for a application that can run a bat-file when Windows Vista is going to shutdown/restart.

Does a application like this exist or would anyone like to create it?  Kiss
here. it will run any program just edit the settings.ini file.

to make the program run on startup, place a shortcut
(not a copy of the program) to your startup folder.

program attached!

* on_shutdown.zip (235.55 KB - downloaded 243 times.)
« Last Edit: August 27, 2009, 11:31:31 AM by Conquer » Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.036s | Server load: 0.11 ]