HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 15th, 2002, 04:53 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How to Set NTFS Permission Programmatically

Originally posted by : Raheel Hussain (raheelphp@yahoo.com)Well , 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

Reply With Quote
  #2  
Old January 15th, 2002, 10:51 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > How to Set NTFS Permission Programmatically


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway