Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exclusive access in one folder
Message
From
26/11/2004 12:55:56
 
 
To
26/11/2004 12:34:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00964719
Message ID:
00964990
Views:
9
Hello,

just a guess (don't know if this is possible):

setting up a folder for which only one special user has the rights

then in your program impersonate to that user and access the folder ..

how to impersonate at runtime to another user is handled in one of Rick Strahl's whitepapers at www.westwind.com (one dealing about ASP with FoxPro, don't know the exact name now ..)

another solution migth be using the WINAPI function "CreateFile" to open files/folders exclusivly
the drawback would be that you'd have to use also the other WINAPI file related functions such as ReadFile/WriteFile etc. to access the files for processing them

if you'd tell us why exactly you want to whole folder to be "reserverd" for your process maybe someone has another idea/concept to handle the "whole" situation

Regards
Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform