Program a file to start when computer wakes?

Page 2 of 2 FirstFirst 12
  1. Matthew Wai's Avatar
    Posts : 5,025
    Windows 10 Home 20H2
       #11

    pxfragonard said:
    That didn't work for me. I tried Event 1 also (for wake up). Neither worked out. System/Kernel-Power/Event ID: 131 (and 1).
    After your PC has woken, in your Event Viewer, can you find "Kernel-Power" and "131" as shown below?

    Program a file to start when computer wakes?-kernel-power-131.jpg
      My Computer

  2. pxfragonard's Avatar
    Posts : 60
    Windows 10 Home Version 1909 (OC Build 18363.592)
    Thread Starter
       #12

    Matthew Wai said:
    After your PC has woken, in your Event Viewer, can you find "Kernel-Power" and "131" as shown below?

    Program a file to start when computer wakes?-kernel-power-131.jpg
    No, I don't get that. It seems to sleep with ID 42 and wake with 107 rather than 131. No instances of 131 when I filtered for that event.
    Attached Thumbnails Attached Thumbnails Program a file to start when computer wakes?-sleep.jpg  
    Last edited by pxfragonard; 17 Feb 2020 at 22:31.
      My Computers


  3. Posts : 2
    Windows 10 Pro
       #13

    You can Also place your file to run on startup in the "shell:startup" folder which can be accessed by
    - push windows key + r
    - type in "shell:startup"
      My Computer

  4. Try3's Avatar
    Posts : 7,424
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #14

    Edgy said:
    You can Also place your file to run on startup in the "shell:startup" folder which can be accessed by
    - push windows key + r
    - type in "shell:startup"
    The OP is interested in wakeup not startup.

    Denis
      My Computer

  5. pxfragonard's Avatar
    Posts : 60
    Windows 10 Home Version 1909 (OC Build 18363.592)
    Thread Starter
       #15

    Correct, Denis and thanks. But the technique is intriguing!
      My Computers

  6. Try3's Avatar
    Posts : 7,424
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #16

    It's just another way of saying open File explorer and go to
    C:\Users\%UserName%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    There are TenForumsTutorials full of these alternative methods, including
    Shell Commands - TenForumsTutorials
    Settings Pages List of URI Shortcuts - TenForumsTutorials
    General Tips Rundll32 Commands - TenForumsTutorials
    CLSID Key (GUID) Shortcuts - TenForumsTutorials
    Commands to Open Control Panel Items - TenForumsTutorials

    Denis
      My Computer


  7. Posts : 1
    Win 10 Pro x64
       #17

    Well done Try. Problem I'm having is it's timing dependent. I have Task Sched run nircmd as follows:

    nircmd.exe mediaplay 5000 "S:\downloads\YouGotMail.wav"

    ... yougotmail is a test. 5000 is length in ms which does not have to be precise but larger than actual clip run time. I actually want it to run clips of MFM HDD's starting up as CPU Galaxy documented here >> Jet Engine in Retro Computer. Old MFM Hard Disk Spin Up Compilation & Benchmark Results - YouTube

    My current desktop setup requires login from sleep. My notebook hooked to TV doesn't but not testing that yet. If login screen comes up and you don't type in immediately, the sound has already played but the sound system (RealTek MoBo audio) may not have been fully enabled before the sound was played. In one login I caught the very end of the mail clip. In the test following I typed in PW before login screen had fully rezzed and I heard the complete wav. Is there an addressable event possibly for when audio subsystem is started? TIA
      My Computer

  8. Try3's Avatar
    Posts : 7,424
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #18

    Xen Uno said:
    Is there an addressable event possibly for when audio subsystem is started?
    I have no idea.

    You can look in Event viewer or a third-party tool such as NirSoft MyEventViewer I think the NirSoft tool would be the most appropriate for this particular investigation.

    Or you could change the TS task definition to use user login instead of WakeUp.

    Denis
      My Computer


 
Page 2 of 2 FirstFirst 12

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

Designer Media Ltd
All times are GMT -5. The time now is 18:55.
Find Us




Windows 10 Forums