Windows update hangs when checking for updates

Page 2 of 2 FirstFirst 12

  1. Posts : 2
    Windows 7 x64
       #11

    Batch File


    I did run the file from the Command Prompt window. I also had selected "run as administrator" when I opened the command prompt.

    I just tried it again and the batch file opens, sits quietly for a few seconds, then opens the help file and the batch window starts flashing.
      My Computer


  2. Posts : 1,784
    Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
       #12

    Edit the batch file. Put the word PAUSE all by itself on a line, that is, between other lines. Whenever it sees that word, it will pause and tell you to hit any key so it can continue. You can even put stuff like this:

    ECHO Now copying the file...
    PAUSE

    Put that right before a file is copied; it will display "Now copying the file..." and "press any key to continue". In this way, it will be easier to figure out where the error is occurring.

    Or, you could put ECHO ON as the first line of the batch file, then put PAUSE after each line. It would tell you what command it was running, and then tell you to hit any key to continue.
      My Computer


 
Page 2 of 2 FirstFirst 12

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