1. Windows question
- Posted by Kirk Knapp <kirk_knapp at yahoo.com> Mar 10, 2006
- 514 views
- Last edited Mar 11, 2006
How does a windows program figure out which file it was used to open?
2. Re: Windows question
- Posted by jacques deschĂȘnes <desja at globetrotter.net> Mar 11, 2006
- 509 views
Kirk Knapp wrote: > > How does a windows program figure out which file it was used to open? If You're talking about an euphoria program then:
sequence cmdLine cmdLine = command_line() puts(1,cmdLine[2])
if the program is binded cmdLine[1] and cmdLine[2] are the same and are the name of the executable if the program is not binded then cmdLine[1] is the euphoria program used to run the script, exw.exe or exwc.exe Does it answer your question? regards Jacques DeschĂȘnes
3. Re: Windows question
- Posted by "Wolf" <wolfritz at king.igs.net> Mar 11, 2006
- 526 views
Kirk Knapp wrote: > > How does a windows program figure out which file it was used to open? ?? .. how about api's, GetModuleFileName()
4. Re: Windows question
- Posted by Kirk Knapp <kirk_knapp at yahoo.com> Mar 12, 2006
- 521 views
I don't think I phrased my question very clearly. When you open, for example, a .e file, it gets opened by ed. How does ed know which specific .e file it was used to open?
5. Re: Windows question
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Mar 12, 2006
- 519 views
Kirk Knapp wrote: > > I don't think I phrased my question very clearly. > When you open, for example, a .e file, it gets opened by ed. > How does ed know which specific .e file it was used to open? Are you talking about opening an *.e file in ed.ex by clicking on the *.e file? If so, ed.ex might be associated as the default application for files with the *.e extension. Ken Rhodes 100% MicroSoft Free SuSE Linux 10.0 No AddWare, SpyWare, or Viruses! Life is Good
6. Re: Windows question
- Posted by Michael Raley <thinkways at yahoo.com> Mar 12, 2006
- 532 views
- Last edited Mar 13, 2006
Kirk Knapp wrote: > > I don't think I phrased my question very clearly. > When you open, for example, a .e file, it gets opened by ed. > How does ed know which specific .e file it was used to open? In windows their is a registry of file types, which you can get to under folder options when you examine *.e you may have several actions that windows can take, these are usually visible from the right click menu when selecting a file typical actions are Open,Edit,Print so when I view the open action for the *.e filetype I see the command line "C:\EUPHORIA\BIN\ED.BAT" "%1" %1 being the variable for the file name passed to ED. --"ask about our layaway plan". --
7. Re: Windows question
- Posted by "Greg Haberek" <ghaberek at gmail.com> Mar 13, 2006
- 524 views
> How does ed know which specific .e file it was used to open? This may be found in command_line(). See the doc here: http://www.rapideuphoria.com/lib_c_d.htm#command_line ~Greg