Hallo Henk-Jan,

moi weer van jou te hooren.

Well actually none of the below solutions does give me the result I 
need, but this does:

    System.Win32.getModuleFileName nullPtr

That was given to me by jeffz on irc and made me want to marry him :-)

It works quite nicely, and really solves the problem of finding files 
relative to exes dir when the exe is not called from the directory it's in.

Haartelik bedankt,

Günther


Henk-Jan van Tuyl schrieb:
> On Mon, 02 Feb 2009 22:35:44 +0100, Günther Schmidt 
> <red...@fedoms.com> wrote:
>
>> Hi,
>>
>> none of the above functions seem to be working, how can I then find 
>> where
>> the exe is? Copyfile is not very reliable when I pass it relative paths.
>>
>> Günther
>>
>
>   currentDirectory  <- System.Directory.getCurrentDirectory
>
> Convert the relative path to an absolute path with:
>   canonicalizedPath <- System.Directory.canonicalizePath ".."
>
> There is also System.Directory.findExecutable to find an executable by 
> name, in the search path, but this is not a reliable way to find your 
> application.
>



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to