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


  1. Posts : 1,777
    Windows 11 [21H2]
       #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. Posts : 7,607
    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. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    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. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    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. Posts : 1,777
    Windows 11 [21H2]
       #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. Posts : 7,607
    Windows 10 Home 20H2
       #776

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


  7. Posts : 1,777
    Windows 11 [21H2]
       #777

    This is now the script.

    Attachment 338214
      My Computers


  8. Posts : 18,044
    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. Posts : 1,777
    Windows 11 [21H2]
       #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. Posts : 18,044
    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


 

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




Windows 10 Forums