Want to run node.js files on Windows 7 just by typing in the file name? Here's how I got it to work:
You should see .JS included in the list. This allows you to type in the script name (hello.js) and Windows will attempt to run it. Next you need to tell Windows to use node.exe instead of wscript.exe (Anyone still use that?) You'll need a CMD.exe window with Administrator privileges. Easy way to do that is to tap the 'Windows' key, type in CMD, right click when it appears in the menu and click 'Run as Administrator'. You may need a password.
When you have the CMD.exe window enter the following:
This renames the .js association (it was JSFile !?!) and tells Windows to use Node.exe to run .js files.
Now try it out by running a .js file. The first time I tried it odd stuff happened. The windows dialog popped up asking me which file I wanted to use to run the file. I browsed to my installed node.js and selected that (I also clicked 'Always use this program.') Then my script ran in a new window. Not what I wanted. But the second time around it ran in the same window.