简体   繁体   English

Windows OS中执行批处理文件时出错

[英]error while executing batch file in windows OS

i have made a batch file in windows 7 OS. 我已经在Windows 7 OS中制作了一个批处理文件。 When i double click on that batch file it opens in notepad and it is not executing code of my batch file. 当我双击该批处理文件时,它将在记事本中打开,并且未执行我的批处理文件的代码。 What should i do now to run or execute batch file? 我现在应该如何运行或执行批处理文件? Please help me. 请帮我。 It is so much serious for me . 对我来说,这是如此严重。

好的,有很多事情可能是错误的,有很多方法可以修复它,但是我认为最快的修复方法是将文件重命名为.cmd而不是.bat(它们是相同的。)

find that reg key and delete value data "notepad.exe" 找到该注册表项并删除值数据“ notepad.exe”

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

it will work. 它会工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM