Information générale
Catégorie:
Fonctions Windows API
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement