How to automate resetting the adapter?

Page 4 of 4 FirstFirst ... 234

  1. Posts : 11,352
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #31

    Dave290 said:
    1. Hm, is this really necessary though? I've removed the 2 from "Wi-Fi 2", and confirmed that it works for me just fine...
    Good. It's just something that I had not noticed earlier on.

    Dave290 said:
    2. Yeah, I have the same issue as the poster basically. Occasionally my internet goes out, where resetting the adapter does the trick.
    Understood.

    Dave290 said:
    Code:
    nircmdc.exe loop 172800 500 setsysvolume 65536 default_record
    From a batch file, which gets hidden just fine. The script, or command rather, makes sure that the microphone volume of a default 'Recording' device, is always at a 100, as Windows always lowers it automatically for me
    Understood. I don't know why this one behaves differently.

    Denis
      My Computer


  2. Posts : 7,456
    Windows 10 Home 20H2
       #32

    I have just used the VBScript in post #23 to run the batch file in post #9.
    I see no pop-up window, and nothing appears on the taskbar.
      My Computer


  3. Posts : 17
    Windows 10
       #33

    Matthew Wai said:
    I have just used the VBScript in post #23 to run the batch file in post #9.
    I see no pop-up window, and nothing appears on the taskbar.
    Thanks for confirming. Hopefully I'll eventually figure out what's causing this
      My Computer


  4. Posts : 11,352
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #34

    Dave,

    There is only the barest of logic behind this idea but you might find that reinstalling your display driver might address both this hidden script issue and your volume decreasing issue.
    - The thought occurs to me that, if your display driver has become corrupted in use, then it might disobey the instructions given to it.

    If your display adapter was part of the computer when you bought it then get the display driver from the computer maker. If it was a separate purchase then get it from the display card maker.

    I am not suggesting that you need to update it.
    I am suggesting that the act of installing it again would overwrite any corruption that existed.

    While you are at it, you might usefully check for any updated bios at the same time because that also interacts with the display.

    This might be a waste of your time but there is no diagnostic test to rule out display driver corruption [and Windows update & Device mgr are no help as they merely check driver dates & version numbers not integrity].

    Best of luck,
    Denis
      My Computer


  5. Posts : 17
    Windows 10
       #35

    Try3 said:
    Dave,

    There is only the barest of logic behind this idea but you might find that reinstalling your display driver might address both this hidden script issue and your volume decreasing issue.
    - The thought occurs to me that, if your display driver has become corrupted in use, then it might disobey the instructions given to it.

    If your display adapter was part of the computer when you bought it then get the display driver from the computer maker. If it was a separate purchase then get it from the display card maker.

    I am not suggesting that you need to update it.
    I am suggesting that the act of installing it again would overwrite any corruption that existed.

    While you are at it, you might usefully check for any updated bios at the same time because that also interacts with the display.

    This might be a waste of your time but there is no diagnostic test to rule out display driver corruption [and Windows update & Device mgr are no help as they merely check driver dates & version numbers not integrity].

    Best of luck,
    Denis
    Thanks for such an elaborated suggestion! I'll probably end up giving it a try, somewhat later... did try to run the script on my other laptop today however, and the cmd icon, was present on its taskbar as well. Could very well be that they both got corrupted display drivers, hm
      My Computer


  6. Posts : 11,352
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #36

    Dave,

    Another illogical experiment would be to insert this as the first line of the batch file
    Code:
    timeout /t 10
    then seeing if the script runs hidden for the first 10 seconds and only appears after that.

    If so, it rather points the finger at the PS command line. In which case, another thing that might be worth experimenting with could be altering the powershell command to run hidden.
    dalchina said:
    You might try
    How to run a powershell script silently
    unless that's exactly what you've already done. (I've not tried it myself)
    But I do not know if any of this will do any good because I do not know why you are having the problem at all.

    I agree with you that seeing the same behaviour on your other computer exonerates your display driver [unless you have the same display cards on both].

    Denis
      My Computer


  7. Posts : 17
    Windows 10
       #37

    Try3 said:
    Dave,

    Another illogical experiment would be to insert this as the first line of the batch file
    Code:
    timeout /t 10
    then seeing if the script runs hidden for the first 10 seconds and only appears after that.

    If so, it rather points the finger at the PS command line. In which case, another thing that might be worth experimenting with could be altering the powershell command to run hidden.


    But I do not know if any of this will do any good because I do not know why you are having the problem at all.

    I agree with you that seeing the same behaviour on your other computer exonerates your display driver [unless you have the same display cards on both].

    Denis
    I've figured it... you're gonna be kinda mad, but here goes. Basically I had:
    if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" %* && exit
    ... script logic here ...
    exit

    From:
    windows - How do I minimize the command prompt from my bat file - Stack Overflow

    Which I should've definitely tried removing first... kinda forgot about them completely. But yeah, sorry for this, I can now launch it hidden
      My Computer


  8. Posts : 11,352
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #38

    Dave,

    I'm just glad that it is both fixed and explained.

    I have seen that minimising code before but I always rely on using the vbs file intermediary to do that job. Where I suggested a vbs command that ended in …, 0 for running hidden, you could use it with …, 7 to run minimised.

    All the best,
    Denis
      My Computer


  9. Posts : 17
    Windows 10
       #39

    Try3 said:
    Dave,

    I'm just glad that it is both fixed and explained.

    I have seen that minimising code before but I always rely on using the vbs file intermediary to do that job. Where I suggested a vbs command that ended in …, 0 for running hidden, you could use it with …, 7 to run minimised.

    All the best,
    Denis
    I'll keep that in mind, thanks!
      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 05:41.
Find Us




Windows 10 Forums