ghell
10-04-2004, 08:43 PM
ok i asked on here a few months ago and for some reason objDirectory.Size started working after i asked so i said nevermind.. but all of a sudden with no provocation it has started saying permission denied
anyone got a better way or way of fixing this?
heres roughly what i have atm:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFsoDir = objFSO.GetFolder(Server.MapPath(".\"))
Response.Write objFsoDir.Size
ah crap, now it seems to be working in some directories but not others
edit: maby because in one directory i may have accidentally made a directory and removed all permissions from all users so i cant delete it or anything (if anyone knows how to get rid of this without formatting that wud also be good ;))
anyone got a better way or way of fixing this?
heres roughly what i have atm:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFsoDir = objFSO.GetFolder(Server.MapPath(".\"))
Response.Write objFsoDir.Size
ah crap, now it seems to be working in some directories but not others
edit: maby because in one directory i may have accidentally made a directory and removed all permissions from all users so i cant delete it or anything (if anyone knows how to get rid of this without formatting that wud also be good ;))