Run program on shutdown

Page 1 of 2 12 LastLast

  1. Posts : 22
    Windows 7 Professional 64-bit
       #1

    Run program on shutdown


    I tried to set a program to run on shutdown, but both solutions found in the Internet are for Win XP, so in Win7 they failed: placing shortcuts to Start Menu > Programs > Shutdown or using gpedit.msc (it's just not present, as soon as I can see). I also tried using the Task Scheduler but I don't know how to set the shutdown event. Any guesses?
      My Computer


  2. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #2

    What version of Windows 7 are you using?
      My Computer


  3. Posts : 17,796
    Windows 10, Home Clean Install
       #3

    PeterMinin said:
    I tried to set a program to run on shutdown, but both solutions found in the Internet are for Win XP, so in Win7 they failed: placing shortcuts to Start Menu > Programs > Shutdown or using gpedit.msc (it's just not present, as soon as I can see). I also tried using the Task Scheduler but I don't know how to set the shutdown event. Any guesses?
    Does this help?




    How To Automatically Shutdown Your Windows Vista Computer
      My Computer


  4. Posts : 6,618
    W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
       #4

    How about a batch file to run the program, which includes a shutdown switch?
      My Computer


  5. Posts : 22
    Windows 7 Professional 64-bit
    Thread Starter
       #5

    WindowsStar, Windows 7 Home Premium.
    richc46, no, this won't help)
    seekermeister, do you mean always shutting down with this batch file? I've already thought about replacing shutdown.exe with my own, which will first do all that I want and then run the original .exe, but it's the last thing I'll try if everything else fails.
      My Computer


  6. Posts : 6,618
    W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
       #6

    I have no idea if totally replacing the shutdown.exe would be the right answer for you, because I don't know what purpose that you want to serve, but from the tone of your post, it seems apparent that you want to retain a choice. If that be the case, the batch file could just be a standalone option. Either it, or the normal means of shutdown could be available.
      My Computer


  7. Posts : 6,618
    W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
       #7

    If you want to try out the batch file idea, and if like me, you don't know much about programming, Batchrun might be useful:

    Batchrun Free Download

    I've not used it before, but this converter might make it more useful also:

    Bat To Exe Converter Free Download
      My Computer


  8. Posts : 22
    Windows 7 Professional 64-bit
    Thread Starter
       #8

    The purpose is making a patch that would turn off NumLock at shutdown because the led keeps lighting after power-off. But now I found a strange thing: if I manually turn NumLock off and press Shutdown, after logging off the led lights again. It seems that even if I find a way to turn if off in my session, it will be no use, so I have to find the cause of this lighting. I've read suggestions about a BIOS option of keyboard power-on, but it's already turned off, so I guess the cause is in some Windows setting. It's kind of off-topic but this is the actual problem.
      My Computer


  9. Posts : 6,618
    W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
       #9

    Yes, it does the same thing on mine, but I fail to see the problem. Outside of simply dealing with an annoyance, is there an operational reason that the LED is a problem? I don't know why the LEDs flash on shutdown, but I assume that when they do this on startup that it has to do with detection procedures. Maybe there is some obscure reason that this is necessary on shutdown also...I don't know.
      My Computer


  10. Posts : 22
    Windows 7 Professional 64-bit
    Thread Starter
       #10

    No, there is nothing but annoyance in it. :)
    You say that your LEDs flash on shutdown, but mine stay on while the computer is off, so it's a bit more annoying :) If I plug the keyboard off and on again while the computer is off, the LEDs flash and turn off as they should, but it isn't much a solution :)
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:11.
Find Us