lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, May 20, 2008 at 3:06 PM, Thomas Lauer <thomas.lauer@virgin.net> wrote:
> Stephen Kellett <lua@objmedia.demon.co.uk> wrote:
>
>> Well, why would you make a link between a GUI action and typing a
>> command line? :-)
>
> Let's see... perhaps because there is no such link?
>
> Double clicking an icon in an Explorer window is one thing, being able
> to launch programs from the command line w/o typing the name of the
> required app is quite another: just google for environment variable
> PATHEXT.
>

Are you sure about this?

In my experience the ability to run t.lua on command line is related to
the "explorer association", where as PATHEXT affect if I need
 to type t.lua or can I just type t

(After all the PATHEXT is just a list of file suffixes, It cannot tell
which executable is used to run the script.)

I personally do not have PATHEXT set for perl or lua files,
this does not affect using them on command line.

To be more precise I am not sure if these are set
by the same register setting, but I know that if I
set "open always with this program" in windows explorer
then precisely after that point the cmd window starts
accepting writing t.lua as a way of "running" the lua
program in file t.lua.


    Eero