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
|