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.

Post a Comment

Popular posts from this blog

iOS 8.4 Is Here!

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

Radon in Newry, Mourne and Down - Action & Education Needed

Council budgets have been and continue to be slashed and perhaps that's the reason why more is not being done to educate people on the risk Radon gas is posing to their health in the area of Newry, Mourne and Down. A recently published Government report includes the below map which starkly highlights the huge areas of the district that are potentially exposed to high levels of this naturally occurring radioactive gas.



While the UK Government recognises and highlights the role this gas plays in causing lung cancer the EPA in the U.S. goes further adding numbers and additional facts such as : 1. 21,000 deaths a year are linked to Radon gas in the U.S.  2. It's the second biggest cause of lung cancer after smoking 3. Radon can enter the home through the water supply as well as the soil 4. There is a risk of stomach cancer from ingesting water containing Radon and lung cancer from inhaling the gas carried in the water.
To help protect and educate the population it's time the c…

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…