Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 18th, 2003, 10:07 AM
Registered User
Join Date: Nov 2003
Location: , , Austria.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Berni016x
Default Can't delete a file with the FileSystemObject


I've got a problem which i can't find a solution:
Dim fso
Dim oFile
Set fso = Server.CreateObject("Scripting.FileSystemObject")
oFile = fso.GetFile("...")
'Read some data
oFile.Delete '<<--- here an error occurs: access denied. The IUSR has got all rights at this file and at this directory!

Please help me!
I also tried the following:
Set oFile = Nothing
fso.DeleteFile "..."
But this also doesn't work!

thx a lot!
Bernhard Wurm

Old September 27th, 2006, 02:14 PM
Registered User
Join Date: May 2006
Location: Desamparados, San Jose, Costa Rica.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

did you close it?

Old May 24th, 2009, 06:56 AM
Posts: n/a

Had the same problem and fixed it with www.pathtoolong.com
Old November 12th, 2010, 02:39 PM
Registered User
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Long Path Tools

Hy. I runned into that damn problem too. And after days of searching I finally

found this software: Long Path Tool.

It's GREAT. You can find it here: http://www.deletelongfile.com
Old August 30th, 2013, 04:41 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default error cannot delete file

Please try longpathtool and get the solution of above relevant issue.It was really helped me to get the right solution which worked for me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
FileSystemObject - UTF8 File Format itHighway Classic ASP Databases 0 May 25th, 2006 09:14 PM
JSP file upload and delete file pandjie JSP Basics 0 January 29th, 2005 10:49 PM
Delete A File jmss66 VB How-To 5 August 10th, 2004 11:18 AM
Create/Delete files w/ASP using FileSystemObject John K. King Classic ASP Basics 3 August 17th, 2003 06:53 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.