Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

vbscript

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?

like image 690
mkasberg Avatar asked Jul 20 '13 00:07

mkasberg


2 Answers

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.

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.

like image 130
mkasberg Avatar answered Oct 02 '22 06:10

mkasberg


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

like image 28
khichar.anil Avatar answered Oct 02 '22 07:10

khichar.anil