Windows 10: Batch files for use in BSOD debugging

Discus and support Batch files for use in BSOD debugging in Windows 10 BSOD Crashes and Debugging to solve the problem; [img] Warning This thread is for use by the BSOD team ONLY, to store batch files that can be used to collect additional data, fix settings or anything... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by Ztruker, Aug 13, 2020.

  1. Ztruker Win User

    Batch files for use in BSOD debugging


    Batch files for use in BSOD debugging [​IMG]
    Warning This thread is for use by the BSOD team ONLY, to store batch files that can be used to collect additional data, fix settings or anything else that is useful in debugging BSOD problems in Windows 10.


    Batch files for use in BSOD debugging [​IMG]
    Information The way I see it working is the first post (this one) will be an index and each additional post will be a batch file with the instructions necessary to run it.
    This post will also have any instruction that will apply to all batch file.

    Once setup this will be made a sticky thread with limited access for editing.

    Before running any batch file, check the properties of your Command Prompt or Powershell window to make sure the vertical scroll buffer (Height) is large enough to hold the output so it can be collected and posted in your BSOD thread. To check this, do the following:

    Right click on the Powershell (or Command Prompt) title bar and select Properties.
    Batch files for use in BSOD debugging [​IMG]

    The Windows Powershell or Command Prompt properties window will open.
    Click on the Layout tab, check the Height setting. Set it to 3000 then click OK
    Batch files for use in BSOD debugging [​IMG]


    Batch scripts for use by the TenForums BSOD team
    [table][tr][td]Tuneup.bat[/td] [td]Run SFC and DISM commands and use WMIC to change some settings[/td] [/tr] [tr][td]DiskParInfo.bat[/td] [td]Collect Boot Manager and Hard Drive information[/td] [/tr] [/table]

    :)
     
    Ztruker, Aug 13, 2020
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Aug 13, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Aug 13, 2020
    #3
  4. Steevo Win User

    Batch files for use in BSOD debugging

    Batch file to ping network

    No, batch files are extremely easy.

    A "If" requires three extra steps.

    Code is not how much you can put in, but how lite can you make it and still perform the functions.

    So

    @ echo off


    ping 1.4.1.4 >a.txt

    findstr /m "Request timed out" a.txt
    if %errorlevel%%==0 (
    echo Save our nets!!!
    )

    pause
     
    Steevo, Aug 13, 2020
    #4
Thema:

Batch files for use in BSOD debugging

Loading...
  1. Batch files for use in BSOD debugging - Similar Threads - Batch files BSOD

  2. Deleting files using a batch file

    in Windows 10 Gaming
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  3. Deleting files using a batch file

    in Windows 10 Software and Apps
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  4. BSOD - Unable to Debug

    in Windows 10 Gaming
    BSOD - Unable to Debug: Hello,My computer has been giving me BSOD at random times. I did a windows fresh installation removing all apps, keeping my files last week and today while I was on a Zoom call audio and video enabled I got another BSOD.The BSOD are almost always distorted, and I cannto...
  5. A debug file

    in Windows 10 Network and Sharing
    A debug file: So there is a file on my desktop that is simply called Debug. I can't get rid of it. every time I try to delete it, it says that it's already running in google. help https://answers.microsoft.com/en-us/windows/forum/all/a-debug-file/242c2ec3-bbc6-47e2-a000-4c3a7c93309e
  6. debug file

    in Windows 10 Installation and Upgrade
    debug file: After windows update every day as I switch on the lap I find the file debug. All the time I delete it but it appears again after restart. It is a notepad file it contains the below code [1017/205630.973:ERROR:directory_reader_win.cc43] FindFirstFile: The system cannot find...
  7. Debug file

    in Windows 10 BSOD Crashes and Debugging
    Debug file: There is a debug file on my desktop. It says : [1016/145258.052:ERROR:directory_reader_win.cc43] FindFirstFile: The system cannot find the path specified. 0x3 What should I do? Everytime I turn on my PC it says scanning and repairing drive C while booting then after few...
  8. Post problem reports here for Batch files for use in BSOD debugging

    in Windows 10 BSOD Crashes and Debugging
    Post problem reports here for Batch files for use in BSOD debugging: Use this thread to report any problems you find with any of the batch scripts in Batch files for use in BSOD debugging or if you have a suggestion. 166261
  9. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  10. BSOD Random Page_Fault_In_Non_Paged_Area with Debug Files

    in Windows 10 BSOD Crashes and Debugging
    BSOD Random Page_Fault_In_Non_Paged_Area with Debug Files: I randomly got a Blue Screen called Page_Fault_In_Non_Paged_Area while playing a game. I had this blue screen before and I thought it would disappear once I downloaded Windows 10. It has came up again and I am afraid that I may loose my computer. What should I do in this...