Announcement

Collapse
No announcement yet.

Determining application's directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Borje Hagsten
    replied
    There are many ways to do it. I use the following:
    Code:
      LOCAL sPath AS STRING, zPath AS ASCIIZ * %MAX_PATH
     
      GetModuleFileName GetModuleHandle(""), zPath , %MAX_PATH
      sPath = LEFT$(zPath, INSTR(-1, zPath , "\"))
    ------------------


    [This message has been edited by Borje Hagsten (edited January 17, 2001).]

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Determining application's directory

    Determining application's directory

    Hello

    I would like to know, after execution of a program starts,
    in what directory the executable program is located. I have
    thought about using CURDIR$ when the programa executes but if
    the program is started from a different directory then it won't
    work.

    Any suggestions are welcomed

    Paulo Jabardo


    ------------------
Working...
X