Home > Operation and Maintenance > Windows 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

angryTom
Release: 2020-02-27 14:54:09
Original
55282 people have browsed it

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;

What to do if win10 runs the bat file and it flashes

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;

What to do if win10 runs the bat file and it flashes

4. After double-clicking the policy, you can see that the previous setting is "Enabled", change it to "Disabled";

What to do if win10 runs the bat file and it flashes

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;

What to do if win10 runs the bat file and it flashes

4. Select the path in the system variable, click the edit button, add the path and save it.

What to do if win10 runs the bat file and it flashes

#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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template