Home>Article>Operation and Maintenance> What to do if win10 runs the bat file and it flashes
What to do if win10 runs the bat file and it flashes?
If there is a crash or other situation, please confirm that there is no system problem first. Problem, there are also some bat files that flash after double-clicking, but they have already been executed.
Solution steps:
1. Display the executed command
To view the batch running status, right-click the Bat File, open Notepad. Add a carriage return at the end and enter Pause to save and open it so that it will not automatically close after execution.
2. Check whether the bat format file cannot be run under win7:
Start-Run, enter regedit, press Enter, and open the registry editor. Found: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT
3. The command prompt has been disabled by the system administrator
1. Click the Start menu, select Run, then enter gpedit.msc and press Enter;
2. After opening the Local Group Policy Editor, go to User Configuration-Administrative Templates-System;
3. At this time, you can see many setting options in the right window. Double-click to open the "Block Access to Command Prompt" option;
4. After double-clicking the policy, you can see that the previous setting is "Enabled", change it to "Disabled";
4. System variable error As a result, BAT cannot run
1. Right-click Computer Properties, and then click "Advanced System Settings" in the upper left corner of the system information;
2. Switch to the "Advanced" tab , click "Environment Variables" below;
3. Click "New" below user variables, enter the user name %path%, and the variable value C:/windows/system32, click OK;
4. Select the path in the system variable, click the edit button, add the path and save it.
#5. After modification, execute bat.
Recommended related articles and tutorials:windows tutorial
The above is the detailed content of What to do if win10 runs the bat file and it flashes. For more information, please follow other related articles on the PHP Chinese website!