Windows 10: Critical Event after batch file runs

Discus and support Critical Event after batch file runs in Windows 10 Software and Apps to solve the problem; pre-event :to automatize with rapid succession a run in cmd for "ipconfig /flushdns", with idea - to make a connectivity more rapid in response after... Discussion in 'Windows 10 Software and Apps' started by Mental Element, Jan 29, 2024.

  1. Critical Event after batch file runs


    pre-event :to automatize with rapid succession a run in cmd for "ipconfig /flushdns", with idea - to make a connectivity more rapid in response after PC turned on,searched via google to create a batch file & got something like this middle sentences took for fun Critical Event after batch file runs :mad:echo off CD /d %~dp0 echo. echo Mental Element's LAB ~ Universal Matters echo. echo ipconfig /flushdns exit /bso, before yesterday, after PC got in abnormal shutdown - checked Reliability Monitor & got crazy stuff in : everyday critical errorsas far used everyday the batch for DNS,the more KB5034441 managed to instal

    :)
     
    Mental Element, Jan 29, 2024
    #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, Jan 29, 2024
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jan 29, 2024
    #3
  4. Critical Event after batch file runs

    Running PowerShell script as a batch file

    Hello Baldo,



    Thank you for writing to Microsoft Community Forums.



    I understand that you want to execute the PowerShell commands as a batch file.



    I tried executing the batch file on my machine but I was unable to execute it as the command was incomplete. However, after making some changes in the command I was able to execute the batch file.



    You can try the following command by saving it in a batch file and check if that helps.



    powershell –Command Get-AppxPackage Microsoft.3dBuilder | Remove-AppxPackage



    Also, as the query is related to running a PowerShell script using a batch file, I suggest you to post the issue on

    TechNet
    forums where we have professionals who have more knowledge about the issue.



    Hope it helps.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Jan 29, 2024
    #4
Thema:

Critical Event after batch file runs

Loading...
  1. Critical Event after batch file runs - Similar Threads - Critical Event batch

  2. Critical Event after batch file runs

    in Windows 10 Gaming
    Critical Event after batch file runs: pre-event :to automatize with rapid succession a run in cmd for "ipconfig /flushdns", with idea - to make a connectivity more rapid in response after PC turned on,searched via google to create a batch file & got something like this middle sentences took for fun :@echo off CD...
  3. Critical Event after batch file runs

    in Windows 10 BSOD Crashes and Debugging
    Critical Event after batch file runs: pre-event :to automatize with rapid succession a run in cmd for "ipconfig /flushdns", with idea - to make a connectivity more rapid in response after PC turned on,searched via google to create a batch file & got something like this middle sentences took for fun :@echo off CD...
  4. Cant run Batch file

    in Windows 10 Gaming
    Cant run Batch file: When i try to run a batch file all it says is this app can't run on your pc i tried going to my property and going to compatibility but it isn't there im on windows 11 btw but if someone can pls help...
  5. Cant run Batch file

    in Windows 10 Software and Apps
    Cant run Batch file: When i try to run a batch file all it says is this app can't run on your pc i tried going to my property and going to compatibility but it isn't there im on windows 11 btw but if someone can pls help...
  6. Batch File run but GUI not prompt

    in Windows 10 Software and Apps
    Batch File run but GUI not prompt: Hello,I made an batch file to run exe file but GUI prompt not appear if i tried to run from outside i.e. batch file present on ABC Folder and I am going to command prompt and run the same it's running and GUI Interface shows but when I runneed the file from other directory...
  7. Is there a batch file to clear Event Viewer?

    in Windows 10 Support
    Is there a batch file to clear Event Viewer?: I have one for Windows 7 and I was wondering if there was one out to clear the Event Viewer in Win 10 Home x64? OS Version10.0.18363.836 (Win10 19H2 [1909] November 2019 Update) I've just gotten Win 10 to behave as I like, but all the tweaking and restoring from backups,...
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Run oscdimg.exe from a batch file?

    in Windows 10 Installation and Upgrade
    Run oscdimg.exe from a batch file?: OK, I have a batch file that copies files from a mounted windows 10 installation file and updates drivers in boot.wim and install.wim. The thing I cannot work out is how to automatically run oscdimg.exe (command from deployment and imaging environment) in a batch file so I...
  10. Running an uneditable Batch file

    in AntiVirus, Firewalls and System Security
    Running an uneditable Batch file: Hi people, Got a task to run a certain CMD command on a number of PCs as administrator. So I thought i would create a batch file doing this. This is not the issue. The issue is that I am unable to lock down successfully so people cannot just edit the file to see the admin...