Want to run node.js files on Windows 7 just by typing in the file name? Here's how I got it to work:
echo %pathext%
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:
assoc .js=JavaScript
ftype JavaScript=node.exe %1 %*