批处理文件不运行 - 他们正在用记事本打开 [英] Batch files don't run - they're being opened with notepad

查看:110
本文介绍了批处理文件不运行 - 他们正在用记事本打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的是WinXP SP3,和我创建了一个.bat文件,做的东西。
当我双击它,记事本打开,我可以编辑批处理文件 - !?!但它没有运行??

我希望,当我双击.bat文件 - 它应该运行,不是吗?
我该如何解决这个问题?


解决方案

检查,如果你有你的注册表此项:

<$p$p><$c$c>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.bat\\UserChoice

如果您有这意味着.bat扩展目前正在与记事本(或此节点下的的Progid键定义的另一个程序)相关联。

备份你的注册表,并删除该蝙蝠UserChoice节点。

您.bat文件应然后正常运行。

I use WinXP sp3, and I have created a .bat file that does something. When I double click on it, a Notepad is opened and I can edit the batch file - but it is not run ??!?!

I expect that when I double click a .bat file - it should run, no? How can I fix this?

解决方案

Check if you have this key in your registry :

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\UserChoice

if you have one it means that the .bat extension is currently associated with notepad (or another program defined by the "Progid" key under this node).

Backup you registry and remove this .bat "UserChoice" node.

your .bat files should then run normally.

这篇关于批处理文件不运行 - 他们正在用记事本打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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