Re: How to get current directory? by adebaene
adebaene
Wed Feb 28 10:22:36 CST 2007
On 28 f=E9v, 10:38, "Jacky" <j...@knight.com> wrote:
> "David Lowndes" <Dav...@example.invalid>
>
> BTW, how can you know whether a file exists?
> The MSDN is hard to search...
You are NOT interested to know wether a file exist or not, because the
file may exist, but the user account your soft is running on may not
have the rights to do anything on it.
What you are interested in is to know wehter you can do a particular
operation on the file (read, write, rename, etc...) : The best option
is simply to try to do this operation and check for an error.
Arnaud
MVP - VC