Excuse me jumping in here, and I'm not a windows expert but..... On Wed, 3 Jun 2009, Andrew Clarke wrote:
> On Tue, 02 Jun 2009 18:13, Clinton Jeffery wrote: > > Generally, to run an icode one might > > prefix it for this command with "iconx" as argv[0]. Running icode with > > .bat extension is sort of a legacy thing at this point, under NT-based > > Win32 the extension .cmd is more frequently used and might work for > > you. > > > I've tried a few combos - > > thing.bat > thing.icx (assuming registration might work) > iconx thing.icx > > I also had to prefix them with their location; I'm not 100% clear what's > going on since CMD should have at least found the .bat and icx via the > PATH, so I would need more investigation in that CMD usually, as far as I remember, picks things up if they live in C:\Program Files\<something>\ or if the directory of the executable is on the path AND the association exists. > > > The .icx extension is not executable generally, and it would feel > > a bit hokey to rig it to work. > > > Yes, making .icx special in the Icon code might be convenient, but what > about .pl, .py, .rb, .js, .......... > I usually do that with <shift-ctrl-right_click> to get the menu that says Open With, then choose the program, and make it permanent when I want that. I think this puts things in the Registry, but I don't know the details of that. For .rb (as you cite it) the installer sets this up for you, so it may be worth poking around in the "one click installer" for ruby. But I think ActiveState /Perl|Tcl/ would do as well. I was surprised on Vista to find that a #! line worked for a Shoes script I wrote. No path needed once that was installed and on the path, just #! shoes as the first line. But it is a script ending in .rb and ruby "knows" about #! lines, so I don't know how circuitous a route it took to get there. [OT: shoes is based on Ruby, and Cairo, see http://shoooes.net/ for more on that] Hugh ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Unicon-group mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unicon-group
