General information
Category:
Windows API functions
Title:
Set Permission on shared folders(win2k) by hardcode in VFP
Hello everyone?
How can i set permission to a shared folders on windows 2000 server by hardcode using VFP?
for example below...I can add user as many as i can...But how can i assign permission to a shared folders to a selected user?
remove the access to everyone then add the selected user to that shared folders...so that only that selected user can access the shared folders on the network...
i want to do this by hardcode in VFP...and i don't have any idea how can i do this...
anybody who know's how to do this? please help...
&& example
local lnUser,lcUser,lcPassword
lcUser=sys(2015)
lcPassword=sys(2015)
for lnshare=1 to 5
!net user &lcUser &lcPassword /add
endf
The Xjers
J² System
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only