On Fri, 04 Mar 2011 00:10:28 +0300, Jesse Phillips
<[email protected]> wrote:
Denis Koroskin Wrote:
> No you cannot. What happens is that you *open* them with the
> default application, which just happens to be an interpreter whose
> default action is to run the script. Try renaming a .exe into .js
> and it will not run, whereas on Unix it would.
>
> Jerome
Double-click? Yes. Running from console? No.
Didn't believe it until I tried it myself, too.
Hmm, I get an error from the MS Javascript interpreter.
Checked again with .js extension. Works like a charm (Windows 7). Are you
sure you running it from console and not using double-click? Start->Run
doesn't work either, but launching CMD and typing test.js works.