Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting NT Server Directory Rights from VFP??
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00258616
Message ID:
00258862
Views:
10
>Assuming the current user has read/write access to the current directory, I'd like to grant access to more users for a sub-directory through VFP (or even VB). How can I do this?
>
>Example: F:\PROJECTS is read-only, so people don't put files there
>F:\PROJECTS\projname (with some sub-directories) is created in VB, and RW access is granted to the group "Company"
>

There are APIs in NT to do this, but I'd strongly recommend using an ActiveX control instead - the Microsoft ADSI (Active Directory) components can do this pretty well (and they are easy to integrate with the WSH - Rick Strahl's Web site has a white paper on using the ADSI controls within VFP, and there are tons of sites which include examples of common NT administrative tasks done using VBScript or JScript with the WSH and the ADSI controls.

Paul-Vlad Tatavu also hand developed some NT ActiveX controls that might be useful (they aren't free, he's been great about providing people who've asked with eval copies.) And he's here on UT...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform