[DUG] Check if allowed to save to a location

Jeremy North jeremy.north at gmail.com
Thu Feb 1 15:00:36 NZDT 2007


Try it and trap the exception.
Really you should be writing all information to the users profile
directory anyway. Unless you have to support OS versions that don't
support it but you can test for those versions before hand anyway.

On 2/1/07, Phil Middlemiss <phil at tumonz.co.nz> wrote:
> Hi all,
>
> What is the correct way to determine if my application is allowed to
> write to a particular directory? That is, there are two locations I want
> to create a file - one is the install directory, which the user may not
> have write privileges to, and the other is in their Documents and
> Settings which is the second choice of where to save it.
>
> Cheers,
> Phil.
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>


More information about the Delphi mailing list