1. setting an editor for Eu pgms in "Open With" on Vista (and delete same also)

I'd like to set Judith's Editor from her IDE as an option to open (edit) Eu code with, and since it's an Eu coded program itself, of course Windows Vista won't run it if it's set as an option for right-click "open with"; so how can I make it an option there?

And, since I already added her "Editor.exw" to my "open with" and that doesn't work, how can I either remove that entry, or correctly associate Euphoria - -> Editor.exw to that entry?

I did find the following, but not sure how to use it, particularly the "%1" parameter:

For Vista, to set right-click "Open With": 
 
Try: 
 
cmd 
ftype emlfile="c:\WINDOWS\notepad.exe" "%1" 
assoc .eml=emlfile 
 
Substitute "eml" and Notepad.exe for the extentions and programs you prefer 

However, when I look into that, neither shows the existing options which are displayed with right-click on a Eu program file, just the default open with (and looks like "assoc" should be first, not second,so you could define the name you want to call the file type).

Dan

new topic     » topic index » view message » categorize

2. Re: setting an editor for Eu pgms in "Open With" on Vista (and delete same also)

Can you use euc to translate the editor into an executable? Then associate .e, .ex, .exw to the binary?

There is also PATHEXT which is available on NT and up. Doing something such as:

PATHEXT=%PATHEXT%;.ex 

Would tell Windows that .ex files are executable. It then looks for the association of what .ex files should be run with and runs them directly. From the command prompt or from Windows shell you could execute programs directly. For example:

C:\euphoria\demo> PATHEXT=%PATHEXT%;.ex 
C:\euphoria\demo> allsorts 
 
Number of completed sorts for 500 items 
    bubble_sort       137 
    simple_sort       301 
 insertion_sort       607 
     merge_sort      1294 
     quick_sort      2300 
    hybrid_sort      5051 
     great_sort      6266 
     shell_sort      5782 
    bucket_sort     51958 

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: setting an editor for Eu pgms in "Open With" on Vista (and delete same also)

Interesting, but didn't work; Vista still (as before adding .exw to end of PATHEXT) complains that when an .exw file which was RIGHT-CLICKED on to bring up Judith's Editor from "Open With", then Judith's Editor from that "Open With" is itself then clicked on, the original .exw file is not a valid win32 application.

I ended up making a .bat file to open her editor with parameter %1 and adding that to the "Open With" popup menu. Works, but I still don't know how to get rid of the non-functional editor.exw item.

Dan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu