As I said, you can do that in a straightforward way by setting up your own shutdown shortcut (with the red button icon) on the desktop and click that to power off the computer. Then it's just matter of routine to change your way of life (on the other side you do not hit the power off key on the keyboard to shutdown).
Any way to set up what stated
- create the following batch
:: shut.bat @echo off color 1E :LOOP cls echo. echo.-- Hey, you have a backup session later -- echo. echo.-- are you sure you want to shut down ? -- echo. set /P Q=Enter Y/N^> if /I "%Q%"=="Y" shutdown -s if /I not "%Q%"=="N" goto :LOOP :: end_of_batch
- save shut.bat in e.g. C:\ - create a shortcut on the desktop to C:\shut.bat and right clicking select Properties where you can name it SHUTDOWN and select the red button icon (sheet Link/change icon)
you are done.
Other fancy ways require more sophisticated methods beyond my know-how.
Glad you appreciate it, but what do you get entering Y/y and then pressing the ENTER key?
Let me know as I tested the script and it worked fine on my Win XP SP2 system.
Any way get the following improved version of the shut.bat (a bit more fancy)
:: shut.bat @echo off color 4E :LOOP cls echo. echo. ## Hey, you have a backup session later ## echo. echo. ## are you sure you want to shut down ? ## echo. Set Q= set /P Q= ###### Enter Y/N then hit ENTER^> if /I "%Q%"=="Y" shutdown -s -f if /I not "%Q%"=="N" goto :LOOP Set Q= color 0E exit :: end_of_batch
if /I "%Q%"=="Y" %SystemRoot%\system32\shutdown -s -f
This should fix the bug, otherwise add <& PAUSE> (without the brackets <>) at the end of the line and please report the message displayed. There is no reason the script doesn't work as planned.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE