469,613 Members | 1,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

NTFS-security and Scripting.FileSystemObject

I want to list my folders with ASP.
I use following script to achieve this:

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
Set oRoot = oFSO.GetFolder(Path)
Set oFolders = oRoot.SubFolders
for Each oFolder in oFolders
Response.Write FolderDisplayName

Some of the folders should be hidden for public acces.
I want to use NTFS-security to hide those folders (no access for IUSR_xxx)

But if I set NTFS security on a folder to "full access" ONLY for known users
on my system, I recieve an error:
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

Is there a way to avoid this problem?
Can I 'skip' this folder by first checking it's security settings?

thanx in advance,



Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06

Jul 19 '05 #1
0 2577

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by BingoHandJob | last post: by
reply views Thread by DEATH TO KENT WEST HILL | last post: by
reply views Thread by Chris Stocker | last post: by
2 posts views Thread by Jim Richards | last post: by
3 posts views Thread by Ray Cassick \(Home\) | last post: by
5 posts views Thread by Thomas | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.