You can change the "default associated program" in Windows, too.

http://kb.iu.edu/data/adhc.html

If you want all files of that type to open in the same software program,
leave the box checked for*Use this app for all .ext files*, where
*.ext* denotes
the extension of the file you chose. Otherwise, uncheck the box.

But, if you do that, take into account that ALL .js in your system will be
opened by node.js

Usually, Python Windows installer associate .py to its python.exe. But it
is more rare to do that with .js, so many engines can run JavaScript these
days.

Angel "Java" Lopez
@ajlopez

On Mon, Nov 26, 2012 at 12:31 PM, Ben Noordhuis <[email protected]> wrote:

> On Mon, Nov 26, 2012 at 3:32 PM, Đức Diện Đỗ <[email protected]>
> wrote:
> > Hi all.
> > common when running node I have to type the command command: "node
> > hello.js".Is there a way to be able to run node without having to do so.
>
> Yes.  Read up on UNIX shebangs.  Only works in UNIX-y environments, of
> course.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to