Actually that forum is german. How often are you expecting it to fail though. Might be quicker to just do it and test if it fails. Although I guess if you can't write to it and it exists are you then wanting to move it to the profile folder?
On 2/1/07, Phil Middlemiss <[EMAIL PROTECTED]> wrote:
It's not as simple as that. This for updating an installed product that may have been installed by a user with admin privileges but being used and updated by a user. Nevertheless, I have found a lovely bit of code at this link here: http://www.delphipraxis.net/post625364.html but the forum is dutch so I'm not even sure what the name of the person who posted it is! Phil. Jeremy North wrote: > 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 <[EMAIL PROTECTED]> 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@ns3.123.co.nz >> http://ns3.123.co.nz/mailman/listinfo/delphi >> >> >> > _______________________________________________ > Delphi mailing list > Delphi@ns3.123.co.nz > http://ns3.123.co.nz/mailman/listinfo/delphi > > > _______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi