Click to See Complete Forum and Search --> : Permission denied problem


gibo
03-27-2003, 01:35 AM
I get problems using scripting.FileSystemObject.
I am writing an application that should do the following: A user must be able to upload files and create folders on the server as well as delete them. At the moment the user can create folders, upload files and delete files without any problems.

The problem is the following: If I try to delete a folder I get the 'permission denied error'. I thougt the problem was with permission settings on the server itself, but it doesn't seem to be the problem especially since I can delete the files but not the folders they are in. I then tried to delete the folders manually on the server, but I get the "sharing violation" error. Soon as the application is run the folders become undeletable. How do I "close" the folders making it possible to delete them from my server???

It doesn't matter if I run the other scripts on the buttons. If I create a folder manually on the server and run this page, the folder can not be deleted(client- or sever side)

NOTE:The upload of files are not done by this application.

I am including the code I have.

Thanks

gibo
03-27-2003, 01:52 AM
Here is the attached file for the "Permission denied" thread

gibo
04-01-2003, 07:09 AM
Thanks for responding Dave. I think you might be on the right track with your response, but I still get the permission denied error when trying to delete more than once.

I put in the objFSO=nothing as you said. Before I couldn't even delete one folder so the error must be something similar.

As soon as I delete a file or a folder, I cannot delete any more folders. Why can I delete only one and then the rest seems to be "locked"?

Please assist

NOTE: I am attaching some code...

Thanks
Gideon

gibo
04-01-2003, 07:20 AM
Thanks for responding Dave. I think you might be on the right track with your response, but I still get the permission denied error when trying to delete more than once.

I put in the objFSO=nothing as you said. Before I couldn't even delete one folder so the error must be something similar.

As soon as I delete a file or a folder, I cannot delete any more folders. Why can I delete only one and then the rest seems to be "locked"?

Please assist

NOTE: I am attaching some code...

Thanks
Gideon

gibo
04-01-2003, 07:41 AM
It doesn't matter on which level. Weather in the same directory or in different directories on different levels, I can only delete one at a time. I can open the directories, but assoon as I delete something, I get the permission denied errror as soon I I try to do so again....

gibo
04-01-2003, 07:49 AM
Sorry about that one!
It doesn't matter if they are on the same level or in diffenrent directories. I can only delete one and get the "permission denied" error when I try to delete the next one.

gibo
04-01-2003, 08:07 AM
I'm pretty sure I set ALL obj to 'nothing'. Could it be something else?