Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: File type Association (.exe, .jpg, ...) Add extension?

04 Nov 2009   #1

File type Association (.exe, .jpg, ...) Add extension?

javascript .js files are associtated with WordPad.exe. ...should be Notepad.exe

.js file extension is missing in the Default Programs-Associate file type....

How can I add and extension(.js) to the list of extensions and protocols?

My System SpecsSystem Spec
04 Nov 2009   #2

7600.20510 x86

It's in mine as

.js | JScript Script File | Microsoft Windows Based Script Host

Here. Try to import it or merge. Then change to your liking.

Attached Files
File Type: rar js.rar (242 Bytes, 126 views)
My System SpecsSystem Spec
04 Nov 2009   #3

64-bit Windows 10 Pro

Hello NIQ, and welcome to Seven Forums.

In addition to Torrentg's post, the js download in the tutorial below should restore the default associations for it.

Default File Type Associations - Restore

Afterwards, you can right click on the .js file and click on Edit to open it on Notepad by default.

Hope this helps,
My System SpecsSystem Spec

05 Nov 2009   #4


Thank you both,

Somehow after restarting, the .js showed up.
...and now I know of 2 ways(above mentioned) to resolve the issue if it is to reoccur.
Thank you. point I should make.

I ran into this seemingly problem due to a really wierd behavior in Visual Studio 2008, where a .js file when clicked to be edited would show a tab but never show the code itself.

I assumed since the file association was wrong, somehow the file had been saved in an incompatible text mode.

I have now found out that the problem only arises when more than one .js file is brought into edit in a Visual Studio 2008/WIN 7 scenario?
CORRECTION: Even if a new Web App Project is created and 1 folder(includes) with one blank .js is added, it fails to show code and the environement start to misdraw the Solution Explorer pane... if I EXCLUDE the .js from the project... and (re) include it, I sometimes can get it to come up... anyhow the behavior is totally inconsistent.

Do you know of a forum like this one where I can bring up this issue?
. t.y.
My System SpecsSystem Spec
05 Nov 2009   #5

64-bit Windows 10 Pro

You're welcome NIQ.

I suppose that you could report this at the Microsoft Visual Studio 2008 forum pages.
My System SpecsSystem Spec
05 Nov 2009   #6


yes I am going to take the steps to report it...
my previous version of VS did not have this problem.

I will reinstall and run all possible updates first...
...have added a CORRECTION in above post...
My System SpecsSystem Spec
05 Nov 2009   #7


as of 11-05-2009, this issue is resolved.

Reinstalling VS2008 and the SP1 Service pack separately,
cleared what I believe were intellisense issues,
that were due to a mismatch in software updates.
My System SpecsSystem Spec
05 Nov 2009   #8

64-bit Windows 10 Pro


I"m happy to hear that you got it sorted. Thank you for posting back with your results.
My System SpecsSystem Spec

 File type Association (.exe, .jpg, ...) Add extension?

Thread Tools

Similar help and support threads
Thread Forum
File Extension Type - Unassociate
How to Unassociate File Extension Types in Vista, Windows 7, and Windows 8 This tutorial will show you how to unassociate a file extension to no longer have a default program to open it with afterwards in Vista, Windows 7, and Windows 8. You must be logged in as an administrator to be able...
WinDBG 8.1 file type association problem.
Hey all:) So I just got a new Win8.1 laptop, and after installing WinDBG and updating my how to thread, I ran into a small problem. When I try to associate dump files with WinDBG I get the following error; Note: the .dmp file is just a random one I grabbed from the top thread to test if...
BSOD Help and Support
Delete file type association?
I have accidentally associated a number of file types with Notepad. I'm trying to delete their association so they go back to having no program that they open with, but Windows does not seem to have this ability integrated into Default Programs > Set Associations. I tried deleting the registry...
General Discussion
.lnk extension and shortcut type file
I have a document that has acquired a .lnk extension and shows a Shortcut type file and I cannot open. I was suggested to go to Sart > Control Panel > Programs > Default Programs > Associate a file type or protrocol with a program > Set Assocations I did that and chose Word to open the...
General Discussion
Newly created file extension not displayed in Association List
After Googling how to create a new file extension in Windows 7, and doing so, it does not show up in the list of file extension association definitions. So I can't define it. The issue I am trying to fix: During the viewing of a website where we file insurance claims, the result of clicking a...
General Discussion
How to hide some new extension file type?
Well I'm new here.. I found some file extensions (.modd and .moff) that I didn't want to be viewed in the folder, so I need to make them hidden. So, would someone here tell me how to make those two extension to be added to type of extension that automatically hidden by windows 7? thanks &...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App