warning screen

  1. #1
    idr
    idr is offline Elite Member

    warning screen

    I need to perform some actions before closing my computer after my daily work. But I forgot it often and then I must boot the computer again.
    I am looking for some program which will send me a temporary warning screen when I click on the “start” or on the “turn off”.
    Is there such a program or an option in “windows”?
    Please advise
    Thanks

  2. #2
    Jim23 is offline Dedicated Member
    Hi idr

    Have you considered a program already on your PC, Windows Task Schedule?
    It has a host of settings to run task and programs as and when you want.
    It might be worth looking at that to see if it can carry out the action you need doing before shutdown.

    Jim23

  3. #3
    idr
    idr is offline Elite Member
    thank you Jim23 but no - the sceduler is based on time, while I am looking for a temporary pop which will appear while I try to close the computer.

  4. #4
    DJNafey is offline UK site moderator
    I have dealt with actions that need to be run at shutdown by creating a batch file on the desktop, placed right next to the Start button and labelled "SHUT DOWN". When the user wants to shut down the PC, they double-click the prominently-placed icon instead of going to the Start Menu. Upon double-clicking the icon, it executes the batch file, which runs the necessary task (e.g. performing a backup of the C:\ drive to a server) and then automatically shuts down the PC when it has finished.

    The batch file command to shut a PC down is shutdown and you can add switches to it such as a timer or a remote computer name. I think I normally just use shutdown -s but you can check the full list of options by going to a Command Prompt and typing shutdown /?.

    You can also use the choice command to give you a question/response scenario. For example, "press 1 if you want to run the command or press 2 if you want to just shut down immediately". The batch file will then run a script depending on whether you pressed 1 or 2. This helps you to get in the habit of using the batch file to shut down instead of the Start Menu, regardless of whether you want to run the extra command or not. Once you've got into the habit, there should be no reason for you to forget.

    If you don't like the sound of that, look into the shutdown script options that might be available in the registry. I think Group Policy allows you to specify shutdown commands in a server-based network environment and that probably works by manipulating the registry on PCs, so it's probably available on every PC if you know how to find it. I think that this is intended to run a command DURING the shutdown process though, rather than actually pausing or stopping the shut down from happening in the first place ......so you'll probably end up coming back to the batch file idea above and using the pause command to make the PC wait for a response or an amount of time.

  5. #5
    Jim23 is offline Dedicated Member
    Last night I was doing the same thing creating a batch file that ran a paint jpg file with the warning have I done all my task before Shutting. Down.
    So we both came to similar answers to your problem. Using a batch file.
    I'm glad you got it sorted and it always feels better when you arrive at the solution your self.

    Jim23

+ Reply to Thread