This problem occurs when your .js files become associated with something other than CScript. This usually happens when you decide to make some kind of default text editor. You can reset it by typing this from the command line:
assoc .js=JSFILE
Tristan reid
source share