[thelist] ASP FSO problem.

Rosalie Sennett rsennett at brainlink.com
Sun Dec 19 16:15:36 CST 2004


Check the "Effective Permissions" on the Advanced Security tab...

There may be something set in security policy on that machine that restricts
the IUSER userid... even with Full Control, there could be some hidden
omission.

r

-----------------
c:/dos
c:/dos/run
run/dos/run
>>
-----------------

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org [mailto:thelist-
> bounces at lists.evolt.org] On Behalf Of Craig
> Sent: Sunday, December 19, 2004 8:27 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] ASP FSO problem.
> 
> Hi,
> 
> I've got the following ASP code to illustrate my problem:
> 
> <%
> set objFSO = CreateObject("Scripting.FileSystemObject")
> set objFolder = objFSO.GetFolder("M:\")
> 
> for each item in objFolder.subfolders
>  response.write item.size & "<br />"
> next
> 
> set objFolder = nothing
> set objFSO = nothing
> %>
> 
> All this code does is try and list the folders' size on the M: drive, but
> it get's a permission denied error on the "item.size" line.  If you change
> the GetFolder to "M:\Dir" or something with a dir in it, it works fine,
> just not on the root level.  I've tried giving IUSR_MYMACNAME full
> permissions on this drive and it still is denied when running the script.
> 
> Does anyone have any thoughts on this problem?
> 
> Thanks,
> 
> Craig.
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list