Solved

FSO.DeleteFolder Permission Error

Posted on 2004-03-30
8
394 Views
Last Modified: 2008-02-07
I have a script which can create a folder and add a file into this folder, this works fine. But i need to have another script to reverse this, ie delete this folder and the file inside.

I have used the FSO.DeleteFolder(Server.MapPath(MyFolder), True) to remove the folder, (and as i understand all files in the folder) however, i get a "Permission Denied" error. Presumably i need to give access rights to the script so it can delete folders. How can this be done?

0
Comment
Question by:OblivionSY
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10712318
In the parent folder, you need to give IUSR_machinename rights over all files and folders in that direxctory. You should then be able to delete...
0
 
LVL 3

Author Comment

by:OblivionSY
ID: 10712441
How does one go about doing that? It will need to work from multiple machines too.
0
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10712462
On the machine it self, go to the parent folder. Right click it, select properties, then Security, there is a list of users. You will need then to add IUSR_whetverthenameofyourmachineis to that list and give all nescessary rights to that folder and its contents,
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:OblivionSY
ID: 10712470
Ahhh, one thing i should have said is, i dont host the pages, they are on a webserver somewhere. So i cannot access that information.

Is there any way for the dynamically created folders to be dynamically deleted?

 When the folder is created, is there anyway to set the permissions then that anyone can delete it?
0
 
LVL 11

Accepted Solution

by:
Slimshaneey earned 50 total points
ID: 10712476
Im not certain, but I dont think so...
0
 
LVL 1

Expert Comment

by:Nandhini
ID: 10958329
you may get that error if the resource used by the file is not destroyed properly
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
msxml3.dll error '80072efd' A connection with the server could be not established 8 56
Debugging Html 8 41
ASP and Extracting XML 7 44
Display field if column exists 7 58
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question