为什么批处理文件没有在我的Windows操作系统上执行? [英] why batch file is not executing on my windows os ?

查看:102
本文介绍了为什么批处理文件没有在我的Windows操作系统上执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行此文件而不是执行它时,我已经创建了一个名为a.bat的批处理文件在记事本中打开。不仅这个文件,而且我的操作系统上有.bat扩展名的每个文件都在记事本中打开。我现在应该怎么做?

i have made a batch file named a.bat when i run this file instead of executing it is opening in notepad. Not only this file but every file on my os which has .bat extension there are opening in notepad. what should i do now ?

推荐答案

这意味着在某个地方你已经改变了.BAT文件的文件关联,而且只做的事就是改变它返回!

打开Regedit并查看:

It means that somewhere down the line you have changed the file association for .BAT files, and teh only thing to do is change it back!
Open Regedit and look at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT

如果删除它,它应该在下次重新启动时重置并改为运行。

If you delete this, it should reset the next time you reboot and run it instead.


这篇关于为什么批处理文件没有在我的Windows操作系统上执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆