From: Henk-Jan v. T. <hj...@ch...> - 2009-02-03 22:51:11
|
On Mon, 02 Feb 2009 22:35:44 +0100, Günther Schmidt <re...@fe...> 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. -- Met vriendelijke groet, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |