An extension of this idea is to use FCREATE() to create a temporary file and delete it. This approach tests for read/write/delete access.
lnfile = addbs(mypath)+sys(3)+".txt"
lnh = fcreate(lnfile)
if lnh > 0 then
=fclose(lnh)
delete file (lnfile)
if file(lnfile) then
else
endif
else
endif
>Hi Pamela,
>
>A quick and dirty solution would be to try and write a few bytes to a dummy file in that directory. Test for the existence of the file and if it's there then the user has write permission.
>
>HTH
>
>Liam
>
>
>
>
>
>>I have a program that I am allowing the user to choose the path that their specific department information resides. Is there a way to verify that the user has security to the chosen directory? If they do not, display a message prompting the user to choose another directory? I want to catch it at this point. . . not when the user tries to access a table within the directory.
>>
>>Thanks in advance for your assistance.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao