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 11-12-2009, 03:50 PM   #1 (permalink)
In The Zone
 
hansraj's Avatar
 
Join Date: Sep 2004
Location: Pune
Posts: 436
Default Option to choose Yes/no to run a batch file in Scheduler!!


Friends...I want to run a batch file through the task scheduler. Now this batch file is to hibernate my system in my absence. When I am working on the system I want a prompt to appear for some time which gives me an option of choosing yes/no. Also if yes/no is not given a reply the batch file to hibernate the system should run after specific time period.
Is this possible? If yes, how!!!
__________________
"An eye for an eye leaves the world blind." - Gandhi

Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
hansraj is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-12-2009, 10:43 PM   #2 (permalink)
Alpha Geek
 
CA50's Avatar
 
Join Date: May 2007
Location: GraveYard
Posts: 918
Default Re: Option to choose Yes/no to run a batch file in Scheduler!!

Sory i cant help with this but i hav an alternative, go to power option in xp, there is an option to hibernate da pc after a specific time. Note that you hav to enable hibernate.
__________________
| A Bit IP35-Pro | E8400 | GTS250 | Gskill 2x2GB | 1.9 TB | CM EP+ 460W | 2x DVD-RW|
| Win XP x86 | Win 7 Ult x86 | LinuxMint |
| Nokia 2700c |
CA50 is offline  
Old 12-12-2009, 08:51 AM   #3 (permalink)
In The Zone
 
hansraj's Avatar
 
Join Date: Sep 2004
Location: Pune
Posts: 436
Default Re: Option to choose Yes/no to run a batch file in Scheduler!!

@ca50
thanks a lot for the generous reply. Found an alternate method. This is the code I am using to achieve my solution.


@Echo off
echo .
echo ..
echo ...Close this window or else...
echo ...the system will hibernate in 45 seconds
echo Countdown has already begun!!!
PING -n 45 127.0.0.1>nul
rundll32 powrprof.dll,SetSuspendState


I have written this code and saved it as a hibernate.bat file and its working fine for me. May be this post helps someone else too.
__________________
"An eye for an eye leaves the world blind." - Gandhi

Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
hansraj is offline  
Old 12-12-2009, 11:40 PM   #4 (permalink)
Alpha Geek
 
CA50's Avatar
 
Join Date: May 2007
Location: GraveYard
Posts: 918
Default Re: Option to choose Yes/no to run a batch file in Scheduler!!

^^^^^^^^^^^^^^gud wrk
__________________
| A Bit IP35-Pro | E8400 | GTS250 | Gskill 2x2GB | 1.9 TB | CM EP+ 460W | 2x DVD-RW|
| Win XP x86 | Win 7 Ult x86 | LinuxMint |
| Nokia 2700c |
CA50 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
Play with Registry Editor kal_21 Tutorials 16 26-12-2007 09:02 PM
Please Help Out Guys Official Techie QnA (read only) 2 05-05-2007 02:08 PM
File & Extension Ron Tutorials 6 26-02-2007 04:02 PM
windows xp start up avenue Software Q&A 7 03-02-2007 12:41 AM
Make a forum using phpBB and install mod/hack in the forum. geek_rohit Tutorials 73 09-02-2006 09:07 AM

 
Latest Threads
- by gforz
- by Who
- by clmlbx
- by Sujeet

Advertisement




All times are GMT +5.5. The time now is 04:21 PM.


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

Search Engine Optimization by vBSEO 3.3.2