
January 15th, 2002, 10:51 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Originally posted by : Vishvas (vishvas_kumar@yahoo.com)This might help you as hint.Dim FileShareDim ComputerNameDim ComputerDomainDim ShareNameDim FileShareMaximumUsersComputerDomain = "Computer_Domain"ComputerName = "Computer_Name"ShareName = "Target_Share_Name"FileShareMaximumUsers = Maximum_Users_ValueSet FileShare = GetObject("WinNT://" & ComputerDomain & "/" & ComputerName & "/LanmanServer/" & ShareName)FileShare.MaxUserCount = FileShareMaximumUsersFileShare.SetInfohope it helps.------------Raheel Hussain at 1/15/2002 2:53:05 AMWell , if there is any body who could tell me , that how can i give NTFS permissions to any folder of an NTFS volume programmatically.following is a non-programmatical method of it.To change NTFS permissions for a directory or fileOpen My Computer, select the drive, directory, or file you want to secure, and open its property sheets. On the Security property sheet, select the Windows account you want to change permissions for. Under Permissions, select the types of access for the selected user or group. Use Allow to specifically allow access and Deny to specifically deny access. For more choices, click Advanced. For more information about the various permissions, see the Windows documentationRaheel Hussain
|