错误 - “文件扩展名 .vbs 没有脚本引擎";使用“Git Bash Here"时在 Windows 7 中 [英] Error - "There is no script engine for file extension .vbs" when using "Git Bash Here" in Windows 7

查看:18
本文介绍了错误 - “文件扩展名 .vbs 没有脚本引擎";使用“Git Bash Here"时在 Windows 7 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了适用于 Windows 的最新版本的 git.当我使用上下文菜单选项 Git Bash Here 时,出现以下错误.

I have the latest release version of git for windows installed. When I use the context menu option Git Bash Here, I get the following error.

文件扩展名为 .vbs 没有脚本引擎

There is no script engine for file extension .vbs

有什么解决办法吗?

推荐答案

问题是由于将 .vbs 文件与 Microsoft Windows Based Script Host 以外的程序相关联引起的(默认).就我而言,我已将这些文件与 Notepad++ 相关联.我能够通过以管理员身份运行 Notepad++ 并删除 .vbs 文件的文件关联来解决它.

The problem is caused by associating .vbs files with a program other than Microsoft Windows Based Script Host (the default). In my case, I had associated the files with Notepad++. I was able to solve it by running Notepad++ as an administrator and removing the file association for .vbs files.

如果您不确定是哪个程序导致了问题,您可以通过从开始菜单中搜索更改与文件扩展名关联的文件类型"来查找.要从那里解决问题,请确保 .vbs 文件将 Microsoft Windows Based Script Host 设置为当前默认程序.

If you're not sure which program is causing the problem, you can find out by searching for "Change the file type associated with a file extension" from the start menu. To fix the problem from there, make sure that .vbs files have Microsoft Windows Based Script Host set as the current default program.

这篇关于错误 - “文件扩展名 .vbs 没有脚本引擎";使用“Git Bash Here"时在 Windows 7 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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