Error - “There is no script engine for file extension .vbs” when using “Git Bash Here” in Windows 7

匿名 (未验证) 提交于 2019-12-03 01:49:02

问题:

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.

There is no script engine for file extension .vbs

Any ideas how to fix it?

回答1:

The problem is caused by associating .vbs files with Notepad++ (or in some cases, perhaps a different program). I was able to solve it by running Notepad++ as an administrator and removing the file association for .vbs files.

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.



回答2:

In my case I was able to get out of this rid by re-associating the vbs files with the following command: cmd-->Run as Administrator --> now type the following command and press enter

assoc .vbs=VBSFile



回答3:

You can try executing the appropriate fix from the link below.

http://www.dougknox.com/xp/file_assoc.htm



回答4:

Although this is a dead post, I wanted to share this with others that come along.

I had the same issue as the OP, but the .vbs files were already associated with "Microsoft Console Based Script Host".

This was happening on a Windows Server 2012 machine, and the .vbs file was being called by a .bat file.

The solution for me was to run cscript.exe /H:CScript, or alternatively run cscript.exe /H:WScript. This associated a script engine for this script to use.



回答5:

I had the same issue using WEBuilder. To solve it, I went in the Options/Preferences/Files/Associations and removed the association with .vbs files. Cheers!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!