1. setting an editor for Eu pgms in "Open With" on Vista (and delete same also)
- Posted by DanM Sep 06, 2011
- 1194 views
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
2. Re: setting an editor for Eu pgms in "Open With" on Vista (and delete same also)
- Posted by jeremy (admin) Sep 06, 2011
- 1188 views
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
3. Re: setting an editor for Eu pgms in "Open With" on Vista (and delete same also)
- Posted by DanM Sep 06, 2011
- 1176 views
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