how to execute a batch when computer is on IDLE

Page 7 of 7 FirstFirst ... 567

  1. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #61

    Try3 said:
    Actually, I have used a similar TaskKill command. This is for a window called Fred.
    Code:
    taskkill /fi "WINDOWTITLE eq Fred"
    You do not need to add any more quotes if the window title has spaces. The example I found was for a window titled Keep display on
    Code:
    taskkill /fi "WINDOWTITLE eq Keep display on"


    Denis
    that is very interesting, never knew that was possible. whenever I went into task manager I always skip the processes tab and go straight for details tab but I guess it has its use lol. so naming the command window i'll give that a try, ty!
      My Computer


  2. Posts : 16,955
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #62

    That code I posted was not about Task mgr.
    All task mgr can do is show you the command line so you can see the name of the batch file/PS1/VBS that is running.

    When I posted the code about identifying scripts by their window titles [post #59], I said I didn't have any notes about using the same technique for killing scripts.
    I then found that I was using precisely that several times every day. I had forgotten that it used the window title method.
    So that is what I added in post post #60.


    Denis
      My Computer


  3. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #63

    Try3 said:
    That code I posted was not about Task mgr.
    All task mgr can do is show you the command line so you can see the name of the batch file/PS1/VBS that is running.

    When I posted the code about identifying scripts by their window titles [post #59], I said I didn't have any notes about using the same technique for killing scripts.
    I then found that I was using precisely that several times every day. I had forgotten that it used the window title method.
    So that is what I added in post post #60.


    Denis
    just reporting back after about a week of usage.

    its working great, there are several occasion seeing it working while middle of zoom meeting or gaming, reset within few seconds and continue to work and havent had any BSOD for a total of 30 days system uptime. prior it would last maybe at most 2 weeks if lucky but now seems to work.

    also Im starting to wonder if adapter reset is not due to the adapter but the computer, since another PC also have similar adapter.
      My Computer


  4. Posts : 16,955
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #64

    I agree that it's the computer that is causing the problem not the adapter itself, which is just the victim.

    I hope that, now you have a workaround, you will soon be in a position to investigate a solution instead.
    - Somebody made some suggestions early on in this thread.
    - Since you have the same adapter in another computer, use Device mgr to compare their drivers.
    - Make a system image & a driver backup before experimenting. Backup and Restore Device Drivers - TenForumsTutorials
    - See what searching for the adapter's HardwareID reveals. my ditty - Search for drivers by HardwareID - TenForums


    Best of luck,
    Denis
      My Computer


 

  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:38.
Find Us




Windows 10 Forums