bat批处理文件是将一系列命令按一定的顺序集合为一个可执行的文本文件,双击该批处理文件,系统就会调用cmd.exe按照该文件中各个命令出现的顺序来逐个运行它们,这对我们操作很有用处,可是有windows7系统用户却发现运行bat批处理文件出现闪退现象,导致无法运行bat批处理文件,针对这个问题,下面给大家介绍一下具体的解决方法。

解决步骤:
一、想显示执行了什么?
你先看看那个批处理的使用方法。如果你要看批处理运行状态,右击那个Bat文件,先编辑。就打开了记事本。在末尾加个回车输入Pause保存后打开就不会在执行后自动关闭了。
二、win7下不能运行bat格式的文件:
开始-运行,输入regedit,回车,打开注册表编辑器。
找到:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT
把下面的东西,看起来不怎么顺眼的都删除了。
三、命令提示符已被系统管理员停用
1、单击开始菜单,选择运行,然后输入gpedit.msc并回车;




1、右键点击计算机属性,然后在系统信息中点击左上角的“高级系统设置”;
2、切换到“高级”选项卡,点击下方的“环境变量”;

3、在用户变量下方点击“新建”,输入用户名%path%,以及变量值C:/windows/system32,点击确定;

4、选中系统变量中的path,点击编辑按钮,添加path并保存即可。

5、修改好后再执行bat即可。
关于Windows7系统运行bat批处理文件出现闪退如何解决就跟大家介绍到这边了,遇到这样问题的朋友们可以按照上面的方法步骤来进行解决吧,更多精彩内容欢迎继续关注win7之家。
网友评论