India Broadband Forum


How to run a batch file just before shutting down

This is a discussion on How to run a batch file just before shutting down within the Windows forums, part of the Operating Systems category; So, I need to run a batch file just before shutting down!!! remember JUST BEFORE shutting down using gpedit i ...

Go Back   India Broadband Forum > Computers > Operating Systems > Windows

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 07-31-10, 12:06 AM   #1
Junior Member
 
Join Date: Jul 2010
Location: Chennai
Posts: 24
Rep Power: 1
dudebuster is on a distinguished road
Default How to run a batch file just before shutting down

So, I need to run a batch file just before shutting down!!!

remember JUST BEFORE shutting down

using gpedit i can run scripts DURING shutdown

But, i need to run it just before.. . . .. . ...

I mean the last program to run before shut down

help me guys...

Last edited by dudebuster; 07-31-10 at 12:23 AM.
dudebuster is offline   Reply With Quote
Old 07-31-10, 08:57 AM   #2
The Wizard
 
meetdilip's Avatar
 
Join Date: Aug 2009
Posts: 4,191
Rep Power: 8
meetdilip has a spectacular aura aboutmeetdilip has a spectacular aura aboutmeetdilip has a spectacular aura about
Default

How do you shut down ? Is it scheduled ? If yes, just use Windows Scheduler and set it before 5 minutes of shut down.
meetdilip is online now   Reply With Quote
Old 07-31-10, 09:52 AM   #3
Junior Member
 
Join Date: Jul 2010
Location: Chennai
Posts: 24
Rep Power: 1
dudebuster is on a distinguished road
Default

No dude I want to shut down manually.

You see if I want to close a notepad and then shut down I can use

---------------
tskill notepad
shutdown -s
---------------

But, actually i want to end cmd and then shut down.
dudebuster is offline   Reply With Quote
Old 07-31-10, 10:04 AM   #4
The Wizard
 
meetdilip's Avatar
 
Join Date: Aug 2009
Posts: 4,191
Rep Power: 8
meetdilip has a spectacular aura aboutmeetdilip has a spectacular aura aboutmeetdilip has a spectacular aura about
Default

I am not sure about your method. But can suggest an alternative.

Auto-connect Download scheduler PC-Gyaan

Works in both PPPoE and Bridge. Give it a try. Or search " Scheduler " by essbebe.
meetdilip is online now   Reply With Quote
Reply

Tags
batch, file, run, shutting

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
Incredible Unlimited Free File Hosting sangamam Windows 4 07-27-10 02:34 PM
How to: Fix .dll file issue imrock Windows 4 04-27-10 09:56 PM
File extensions zoooni Software News, Previews and Reviews 0 02-28-10 10:46 PM
Play on Linux ( a free utility to run windows software on linux) Luke Skywalker Linux 1 02-08-10 01:54 AM
How Torrents Works ? talktoanil Computer technology 12 02-03-10 12:26 AM


All times are GMT +5.5. The time now is 08:13 PM.


India Broadband Forum