Post problem reports here for Batch files for use in BSOD debugging

Page 78 of 84 FirstFirst ... 28687677787980 ... LastLast
  1. jbcarreon123's Avatar
    Posts : 1,493
    Windows 10 Pro v21H1 x64 (19043.1052), Linux (LiveUSB)
       #771

    This can be used:
    Code:
    ::before the code
    ::paste the code here starting with echo
    start "%tmp%\output.bat"
    WMIC recoveros set autoreboot = false >%tmp%\output.log 2>&1 ::this will output the STDOUT and STDERR in another CMD window
    echo 1 >%tmp%\ready.log ::this will output the file in another CMD window
    
    ::In before the exit, this is the added code:
    Echo 2 >%tmp%\ready.log ::this will dictate the Another CMD to close
    Del %tmp%\output.log
    Del %tmp%\ready.log
    This is the another file (you can attach this in the code and create the file in Temp folder
    Code:
    @echo off
    :[0]
    if exist "%tmp%\output.log" (
    goto [OutputExist]
    ) else (
    goto [WaittoExist]
    )
    
    :[OutputExist]
    set /p "ready=" <%tmp%\ready.log
    if "%ready%"=="0" (goto [OutputExist] )
    if "%ready%"=="1" (goto [Ready] )
    if "%ready%"=="2" (goto [Exit] )
    
    :[WaittoExist]
    if exist "%tmp%\output.log" (goto [0] )
    goto [WaittoExist]
    
    :[Ready]
    type %tmp%\output.log
    
    :[Exit]
    exit /b
    - - - Updated - - -

    I can improve this when I got PC opened tomorrow.
      My Computers

  2. Matthew Wai's Avatar
    Posts : 5,961
    Windows 10 Home 20H2
       #772

    I ran both of your codes. Neither of them has produced output.
    I am looking forward to the improved versions tomorrow.
      My Computer

  3. Ztruker's Avatar
    Posts : 13,601
    Windows 10 Pro X64 21H1 19043.1110
    Thread Starter
       #773

    Matthew Wai said:
    There will be no flashing when the code has been added into Tuneup_plus_log.bat.
    Do you want the toast notification or the message box or both? You can add more text into the box.


    Who has Windows 11 to test the scripts on?
    Who has the right to approve the scripts to be posted?
    Who has the right to write the instructions?

    Let me finish a script before asking me to create another.


    "Tuneup_plus_log.bat" will skip the second SFC /ScanNow if the first finds no corrupt files.
    Likewise, RestoreHealth can also be skipped, but the BSOD analysts consider it necessary.

    Do we need a new Batch Scripts thread in WindowsQ or can we continue to use the one we have in Tenforums? You and @zbook have pretty much taken over the Batch Script work so if you want a new one in WindowsQ aask John or @Brink if they would set one up. You guys should drive it and migrate anything from Batch files for use in BSOD debugging - Windows 10 Forums
      My Computers

  4. Ztruker's Avatar
    Posts : 13,601
    Windows 10 Pro X64 21H1 19043.1110
    Thread Starter
       #774

    Matthew Wai said:
    It does not look good in the attached message box.
    Agree this does not look good:

    Post problem reports here for Batch files for use in BSOD debugging-image.png

    Since V takes you to that location, remove the link entirely and let the user press V if they want to read the instructions.

    Post problem reports here for Batch files for use in BSOD debugging-image.png
      My Computers

  5. jbcarreon123's Avatar
    Posts : 1,493
    Windows 10 Pro v21H1 x64 (19043.1052), Linux (LiveUSB)
       #775

    @Matthew Wai,
    Our internet just died, and my ISP says, there's an problem on their system..
    Using mobile data for now.. I hope that we now have Internet later so I can send here my full code.
    I already attached and modified the file so it will be good.
      My Computers

  6. Matthew Wai's Avatar
    Posts : 5,961
    Windows 10 Home 20H2
       #776

    No problem. I will wait for your code. Take your time.
      My Computer

  7. jbcarreon123's Avatar
    Posts : 1,493
    Windows 10 Pro v21H1 x64 (19043.1052), Linux (LiveUSB)
       #777

    This is now the script.

    Attachment 338214
      My Computers

  8. Paul Black's Avatar
    Posts : 13,287
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #778

    Hello @jbcarreon123,

    jbcarreon123 said:
    This is now the script => Attachment 338214

    The link is showing as Invalid. This might help if you are having problems . . .

    > How to Upload and Post Screenshots and Files at Ten Forums

    I hope this helps.
      My Computer

  9. jbcarreon123's Avatar
    Posts : 1,493
    Windows 10 Pro v21H1 x64 (19043.1052), Linux (LiveUSB)
       #779

    Tuneup_plus_log[Test_4].bat
    Paul Black said:
    Hello @jbcarreon123,




    The link is showing as Invalid. This might help if you are having problems . . .

    > How to Upload and Post Screenshots and Files at Ten Forums

    I hope this helps.
    I recently deleted the file for updating and verification.
    This is now the file ==> Tuneup_plus_log[Test_4].bat

    SHA-256 Hash: 936CDE117AC20C0FC9922193692DD3DA66F21D8788EB9B5447246276FB9D9E82



    Also, there was some updates on the file.
    Post problem reports here for Batch files for use in BSOD debugging-image.png
    I use this command: clip to copy the link into clipboard.
      My Computers

  10. Paul Black's Avatar
    Posts : 13,287
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #780

    Hello @jbcarreon123,

    Is this line [ line 53 with ESC ] left over from testing or such like at the top? . . .

    Code:
    
    echo  #                           Tuneup_plus_log.bat                           #
      My Computer


 
Page 78 of 84 FirstFirst ... 28687677787980 ... LastLast

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




Windows 10 Forums