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

Page 10 of 152 FirstFirst ... 891011122060110 ... LastLast

  1. Posts : 7,623
    Windows 10 Home 20H2
       #91

    Ask the administrators to make a decision about VBScript so as to end the argument.
      My Computer


  2. Posts : 7,623
    Windows 10 Home 20H2
       #92

    zbook said:
    OP posted incomplete results for each:
    tuneup.bat
    disparinfo.bat
    Apparently, for some reason, some commands in the scripts could not be run.
      My Computer


  3. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #93

    zbook said:
    I've not tried modifying them.
    You can't modify someone else's post but you can create a new post. If you do please follow the existing structure. I'll attach a txt file of one of the current batch file posts with all the BBCODE showing so you can use it as a model if you want.

    Sample_Batch_Repository_Post.txt

    I would have to update the index (first post) to point to the new batch file after you added it as a new post in the BSOD repository since I am the owner of that post. It's the same as a post in any forum.

    Brink can also edit any post and has done so for me several times when I couldn't figure out how to do something. He's pretty amazing and responsive but I don't like to bother him unless necessary.

    Upgrade_failure_info.bat is a good name for the batch file.

    Matthew, would you change the VBS code to Powershell for elevation so we can try it with this batch file?
      My Computers


  4. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #94

    zbook said:
    In this thread:
    Frequent BSOD'S for the past 4 months

    OP posted incomplete results for each:
    tuneup.bat
    disparinfo.bat
    I think the user just didn't follow instructions on how to post the output and instead did a copy and paste withb the mouse of whatg was visible on the screen.
      My Computers


  5. Posts : 7,623
    Windows 10 Home 20H2
       #95

    Ztruker said:
    Upgrade_failure_info.bat is a good name for the batch file.

    Matthew, would you change the VBS code to Powershell for elevation so we can try it with this batch file?
    Done in the file attached below:
    Post problem reports here for Batch files for use in BSOD debugging Attached Files
      My Computer


  6. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #96

    Ran the script and it completes okay but I don't have a lot of the directories it's looking for so there are quite a few errors.

    Code:
    C:\WINDOWS\system32>(Net session  1>nul 2>&1 )  || (PowerShell start """C:\Users\ztruk\Desktop\Upgrade_failure_info (version 5).bat""" -verb RunAs   & Exit /B )
    
    C:\WINDOWS\system32>Echo. & Echo     The script is collecting information ...
    
        The script is collecting information ...
    
    C:\WINDOWS\system32>For /F "tokens=2 delims==" %# in ('wmic OS Get localdatetime /value') Do (Set "Time=%#" )
    
    " ) INDOWS\system32>(Set "Time=20201102132407.922000-240
    
    C:\WINDOWS\system32>Set "Year=2020"   & Set "Month=11"   & Set "Day=02"
    
    C:\WINDOWS\system32>Set "Hour=13"   & Set "Minute=24"   & Set "Second=07"
    
    C:\WINDOWS\system32>Set "Date+Time=2020-11-02_at_13-24-07"   & Set "F=Upgrade_failure"
    
    C:\WINDOWS\system32>Set "Z=C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07"   & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows"
    
    C:\WINDOWS\system32>Set "R=Windows\Panther"   & For %# in ("C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_*.zip") Do (Del "%#" )
    
    C:\WINDOWS\system32>(Del "C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-22-14.zip" )
    
    C:\WINDOWS\system32>Set "P=PowerShell Compress-Archive -Path"   & Set "D=-Update -DestinationPath"
    
    C:\WINDOWS\system32>Set "S=Windows.~WS\Sources"   & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT"
    
    C:\WINDOWS\system32>Set "W=Windows.~BT\Sources"   & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther"
    
    C:\WINDOWS\system32>XCOPY "C:\WINDOWS\Logs\MoSetup" "C:\Users\ztruk\AppData\Local\Temp\Windows\Logs\MoSetup\" /S
    C:\WINDOWS\Logs\MoSetup\ActionList.xml
    C:\WINDOWS\Logs\MoSetup\DeviceInventory.xml
    C:\WINDOWS\Logs\MoSetup\UpdateAgent.log
    3 File(s) copied
    
    C:\WINDOWS\system32>XCOPY "C:\$Windows.~BT\Sources\Rollback" "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT\Sources\Rollback\" /S
    File not found - Rollback
    0 File(s) copied
    
    C:\WINDOWS\system32>XCOPY "C:\$Windows.~BT\Sources\Panther" "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT\Sources\Panther\" /S
    File not found - Panther
    0 File(s) copied
    
    C:\WINDOWS\system32>XCOPY "C:\Windows\Panther\UnattendGC" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\UnattendGC\" /S
    C:\Windows\Panther\UnattendGC\diagerr.xml
    C:\Windows\Panther\UnattendGC\diagwrn.xml
    C:\Windows\Panther\UnattendGC\setupact.log
    C:\Windows\Panther\UnattendGC\setuperr.log
    4 File(s) copied
    
    C:\WINDOWS\system32>XCOPY "C:\Windows\Panther\NewOS" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\NewOS\" /S
    File not found - NewOS
    0 File(s) copied                                                                                                                                                                                                                                C:\WINDOWS\system32>Copy "C:\Windows\Panther\setupact.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\"   & (MD C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther )                                                                 1 file(s) copied.                                                                                                                                                                                                                       C:\WINDOWS\system32>Copy "C:\Windows\Panther\setuperr.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\"
            1 file(s) copied.
                                                                                                                            C:\WINDOWS\system32>Copy "C:\$Windows.~WS\Sources\Panther\setupact.log" "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther\"                                                                                                        The system cannot find the path specified.                                                                                                                                                                                                      C:\WINDOWS\system32>Copy "C:\$Windows.~WS\Sources\Panther\setuperr.log" "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther\"
    The system cannot find the path specified.
    
    C:\WINDOWS\system32>Copy "C:\WINDOWS\setupapi.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\"   & (MD C:\Users\ztruk\AppData\Local\Temp\Windows\inf )
    The system cannot find the file specified.
    
    C:\WINDOWS\system32>Copy "C:\WINDOWS\inf\setupapi.dev.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\inf\"
            1 file(s) copied.
    
    C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows.~WS (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows.~WS -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 )  && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows.~WS )
    
    C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows.~BT (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows.~BT -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 )  && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows.~BT )
    
    C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows     -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 )  && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows )
    
    C:\WINDOWS\system32>Del "C:\Users\ztruk\AppData\Local\Temp\(+).vbs"   & Set "CMD=C:\Users\ztruk\AppData\Local\Temp\CMD.cmd"   & Set "#=Echo Echo"
    Could Not Find C:\Users\ztruk\AppData\Local\Temp\(+).vbs
    
    C:\WINDOWS\system32>(
    Echo @echo off&Title   Operations completed successfully.&mode con cols=89 lines=14&color 17
     Echo Echo.
     Echo Echo  #######################################################################################
     Echo Echo  #                                                                                     #
     Echo Echo  #                             Upgrade_failure_info.bat                                #
     Echo Echo  #                                                                                     #
     Echo Echo  #      The log files have been put into the following ZIP file:                       #
     Echo Echo  #                                                                                     #
     Echo Echo   C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07.zip
     Echo Echo  #                                                                                     #
     Echo Echo  #      Please upload the file as an attachment to your post on TenForums.             #
     Echo Echo  #      Press any key to close this window.                                            #
     Echo Echo  #                                                                                     #
     Echo Echo  #######################################################################################
     Echo Pause >nul & Exit
    ) 1>"C:\Users\ztruk\AppData\Local\Temp\CMD.cmd"  & Timeout 1 /nobreak  1>Nul  & Start "" "C:\Users\ztruk\AppData\Local\Temp\CMD.cmd"   & Pause
    Press any key to continue . . .
    Since they aren't visible i guess it doesn't matter. Just wondering though, should you check for the existence of the folder before trying to copy it or just try to copy it and ignore the error. Since the error doesn't show unless you are watching real close it really doesn't matter.
      My Computers


  7. Posts : 7,623
    Windows 10 Home 20H2
       #97

    Ztruker said:
    Code:
    Del "C:\Users\ztruk\AppData\Local\Temp\(+).vbs"
    I forgot to remove the above line, which has been removed from the version 6 attached.

    Ztruker said:
    Since the error doesn't show unless you are watching real close it really doesn't matter.
    I was watching it very closely and could not see any errors.
    Post problem reports here for Batch files for use in BSOD debugging Attached Files
      My Computer


  8. Posts : 41,655
    windows 10 professional version 1607 build 14393.969 64 bit
       #98

    In this link:
    Two BSODs within the past week

    Tuneup.bat results appeared normal but was followed with:

    Code:
    Environment variable 笳・Echo Echo not defined
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '#' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    The system cannot find the path specified.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・.' is not recognized as an internal or external command,
    operable program or batch file.
      My Computer


  9. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #99

    Matthew Wai said:
    I forgot to remove the above line, which has been removed from the version 6 attached.

    I was watching it very closely and could not see any errors.
    I just ran #6 and did not see any errors either. Looks good to go to me.
      My Computers


  10. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #100

    zbook said:
    In this link:
    Two BSODs within the past week

    Tuneup.bat results appeared normal but was followed with:

    Code:
    Environment variable 笳・Echo Echo not defined
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '#' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    The system cannot find the path specified.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・' is not recognized as an internal or external command,
    operable program or batch file.
    '笳・.' is not recognized as an internal or external command,
    operable program or batch file.
    That's the code at the end of the batch file to display the info menu:

    Code:
    @Echo off
    Set "CMD=%Temp%\CMD.cmd" & Set "●=Echo Echo" 
    (Echo @echo off^&Title   Operations completed successfully.^&mode con cols=90 lines=32^&color 17 
    %●%    ###################################################################################
    %●%    #                                                                                 #
    %●%    #  Copy the results from the Command Prompt or Powershell window and paste        #
    %●%    #  them into a post on TenForums:                                                 #
    %●%    #                                                                                 #
    %●%    #  Go to your thread in the BSOD section, start a new post, and paste the text    #
    %●%    #  you copied into your post ^(press Ctrl + V or right-click and select [Paste]^).  #
    %●%    #                                                                                 #
    %●%    #  Select the text you just pasted into your post. Then, on the editor toolbar,   #
    %●%    #  click on the hashtag icon [#] to wrap  tags around the selected   #
    %●%    #  text. The data will appear in a code box, properly formatted and easy to read. #
    %●%    #                                                                                 #
    %●%    #  Alternatively, without selecting anything, put  tags at the         #
    %●%    #  beginning and the end of the data, which will look like what they do in a      #
    %●%    #  Command Prompt window, properly formatted.                                     #
    %●%    #                                                                                 #
    %●%    #  Before you post, click on the [Go Advanced] button at the bottom on the right  #
    %●%    #  to see what it looks like and, if you have made any additional changes, click  #
    %●%    #  on the [Preview Post] button, so that you can see what it looks like before    #
    %●%    #  you actually post it. Click on the [Submit Reply] button as long as you are    #
    %●%    #  satisfied with it.                                                             #
    %●%    #                                                                                 #
    %●%    #             Batch files for use in BSOD debugging                    #
    %●%    #            Go to post #1. Scroll down to [Part Two] and see step [5]            #
    %●%    #                                                                                 #
    %●%    #        Press [V] to visit the above web page for detailed directions.           #
    %●%    #        Press [C] to close this window.                                          #
    %●%    #                                                                                 #
    %●%    ###################################################################################
    %●%.&%●%.&Echo CHOICE /C "VC" /M "Your choice?:" ^>nul 2^>^&1
    Echo If %%errorlevel%%==1 ^(Start "" "https://www.tenforums.com/bsod-crashes-debugging/162488-batch-files-use-bsod-debugging.html"^) 
    Echo Exit)> "%CMD%" & Timeout 1 /nobreak>Nul & Start "" "%CMD%" & pause
    I suspect a language problem.
      My Computers


 

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




Windows 10 Forums