Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding files without filer - permission problem.

Status
Not open for further replies.

monkey666

Programmer
Oct 18, 2002
34
EU
afternoon

ref: faq184-140

been using this for a while (in a modified version - conversion to VCX - NO major changes to code).

While performing the recursive directory search on a NT network drive the program using the class crashed - it couldn't open a folder to list the folders inside.

I called the systems administrator and he has set really strict permissions on it (some groups can't even see the folder and only Administrators have access) - I can see it but have denied access.

How can I check in foxpro to see if a user has access to a directory. Are there folder flags I can view?

monkey
 
Well, there is a read-only attribute that can be used with ADIR():
n = ADIR(a, "", "R")

but I can't seem to get it to work. ???
And it looks like they omitted it from the documentation. Anyone else?
Dave S. [cheers]
 
Hi

Look into these..
1. User Rights Issue, part II
thread184-378441

2. User Rights Issue, part III
thread184-379349

I have not gone thru them in depth, but I recollect IRABVY was writing something related to user rights and I just did a search. Hope that helps you.

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
afternoon

thanks for the tips - got some places to start from.

I guess i should re-named the header to "adir problems with NT User permissions"

i'm thinking adding a 'fix' of

if type("acurDirList")#"U"

FOR nCopy = 1 TO ALEN(acurDirList,1)
&&& some code
endfor
endif

monkey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top