Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 25-08-2008, 11:56 AM   #1 (permalink)
In The Zone
 
Join Date: Mar 2005
Posts: 267
Default Running a program at shutdown?


Is it possible that just like some programs can be set to run at startup in Windows, I can set to run a program at the shutdown time?
i.e. upon hitting shutdown button in Windows (XP Sp2), it will first run the specified program and then initiate the shutdown?
Thanks,
patkim is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 26-08-2008, 12:13 AM   #2 (permalink)
Banned to Spam
 
Krazy Bluez's Avatar
 
Join Date: May 2008
Location: Look below...not under pants dumbo...use a GPS
Posts: 548
Default Re: Running a program at shutdown?

No, it is not possible as during the shutdown time all the applications INCLUDING the core services and the Core processes are terminated by the kill process, so you might have seen that when you try to initiate any program, it gives a runtime error, due to this and it says failed to initialize.

One question from my side, why the hell you would want the programs to be run at the shutdown time ???
__________________
My DeviantART page now exists !!!
Krazy-Bluez.deviantart.com

Twitter: http://twitter.com/KrazyBluez
Krazy Bluez is offline  
Old 26-08-2008, 12:33 AM   #3 (permalink)
dá ûnrêäl Kiñg
 
zyberboy's Avatar
 
Join Date: Feb 2006
Location: kerala/calicut
Posts: 992
Default Re: Running a program at shutdown?

yes it can be done in many ways
http://www.skarbek.com.au/columns06/c-06may02.htm
__________________
My Stomach pains:D:D
http://tinyurl.com/32jj4m
zyberboy is offline  
Old 28-08-2008, 10:53 PM   #4 (permalink)
In The Zone
 
Join Date: Mar 2005
Posts: 267
Default Re: Running a program at shutdown?

Thanks @zyberboy…this was great.. but unfortunately my purpose was to run a script to copy the data from local desktop to network backup folder in my office.
The script though runs at shutdown, I fount it running after closing the network connections!
patkim is offline  
Old 29-08-2008, 12:53 PM   #5 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Running a program at shutdown?

simple stuff....

type all commands you like in notepad, and add a last line "shutdown -i" for the shutdown box, or the several shutdown options which can be viewed thro "shutdown /?" Save it as a batch file on your desktop. Run it whenever you want to shutdown.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Mac program on windows bukaida Software Q&A 9 08-04-2007 06:50 AM
Windows SHUTDOWN Problem, system freezez on shutdown screen catch_maxi Software Q&A 2 16-03-2006 07:38 PM
running c++ program in linux shivi4 Open Source 13 01-02-2006 02:00 AM
Problem running DOS program in full screen mode on WinXP osinghrathore Software Q&A 4 24-10-2005 05:55 PM
Program Shutdown dev QnA (read only) 6 05-02-2005 02:57 PM

 
Latest Threads
- by Niilesh
- by clinton
- by Tenida
- by abhidev

Advertisement




All times are GMT +5.5. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2