PDA

View Full Version : directory size


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 ;))

Roy Sinclair
10-04-2004, 10:52 PM
Check the permissions in the directories where it's working and where it's not working. Always check the "Advanced" permissions, the regular permissions tab often doesn't show the whole story.

ghell
10-05-2004, 08:43 AM
yea i think its justthe directory where i accidentally turned off all permissions (including the view permissions permission) so i cant do anything with it afaik... any ideas how to get rid of it?

BuddhaMan
10-05-2004, 12:43 PM
Back the permissions off?

Roy Sinclair
10-05-2004, 08:27 PM
If you're listed as the "owner" of that directory you should be able to set permissions on it again. If you're not the owner then you need to log on using an Administrative account, then you make make that account into the "Owner" and after that be able to set permissions on that directory again.

ghell
10-06-2004, 05:31 PM
theres only 1 account on the server and its the administrator:p
i cant see the permissions to change them but can i do that owner thing in a diff way