Skip to main content

No Script Engine For File Extension Error Fixed With No Reinstall Or INF Files!

I'm sure there are many people out there who have been confronted with the Windows Scripting Host error "No script engine for file extension <file extension>". This is the error I was confronted with today and have spent the last few hours working on a solution to it and I have just found it.

After finding that files with the .vbs extension were working fine I opened the registry using regedit.exe. Remember if you are going to mess with the registry back it up first because if you remove the wrong key it can destroy your system. Under the HKEY_CLASSES_ROOT key I navigated to the .js key. There is a string value named Default that had the value set to "(Default)". I changed this to "JSFile", without the quotes.  Looking at the .vbs key it also has a string value named Default with the value set to VBSFile. With this change made I closed regedit.

Navigate to the .js file you are trying to execute and right click on it. Select Open With from the menu and ensure that the Microsoft Windows Based Script Host has been chosen. If not select Choose default program and select the Script Host entry. Close the dialog and double click on the JavaScript file you want to execute. It should now execute without any problems.

Comments

Popular posts from this blog

Everyone Should Watch Tim Cook’s 2017 MIT Commencement Address

On June 9th 2017, Apple’s CEO Tim Cook took to the stage at MIT and addressed this years graduating class. Throughout the speech you can hear echoes to the address the late Steve Jobs gave to the Stanford class of 2005 but make no mistake this feels like it’s personal and coming from the heart and to me it was brilliant. I cannot recommend it enough. If you decide you don’t have time to listen then just take away this one line:

Measure your impact on humanity not in the likes, but the lives you touch; not in popularity, but in the people you serve. - Tim Cook 2017


Tim strikes the perfect balance between hope, caution and responsibility. Your role in this world is to find how you can best serve humanity. Don’t let the negative voices, no matter where they come from, divert you from doing what you believe to be right and don’t let yourself become one of those voices. Sticking to your values and making the world better for everyone is not easy and is not going to be easy. Embrace the ch…

iOS 8.4 Is Here!

iOS8.4 is here and available to download so head over and grab it from Software Update.

A Little Time Travel Thought Experiment

During the Back to the Future (BTTF) anniversary celebrations there was a lot of talk about how accurately they represented time travel. The consensus seemed to be that travelling back and appearing at the same physical location but in a different time was how time travel would likely work. This is where I got thinking. The universe is an ever moving beast. Nothing sits still and this leads to some pretty big problems. To start with the Earth rotates on its axis every ~24 hours, so our traveller would need to arrive at approximately the same time of day in the past. He’s worked out time travel so that’s not going to be hard to do. Next, the Earth orbits the sun every ~365.25 days. This one is a little more of a problem. If our traveller is in the heat of June and has decided to travel back because he wants to see an Xmas in the past he’s got a problem. The Earth will be on the other side of the Sun. So Marty needs to travel back to roughly the same day each year? Fair enough I suppos…