p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Components (http://p2p.wrox.com/forumdisplay.php?f=68)
-   -   Can't delete a file with the FileSystemObject (http://p2p.wrox.com/showthread.php?t=7408)

Berni016x December 18th, 2003 10:07 AM

Can't delete a file with the FileSystemObject
 
hello!

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("...")
oFile.OpenAsTextStream()
'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


alemadlei September 27th, 2006 02:14 PM

did you close it?


sanju121 May 24th, 2009 06:56 AM

Had the same problem and fixed it with www.pathtoolong.com

antonyrat November 12th, 2010 02:39 PM

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

antonnys August 30th, 2013 04:41 AM

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.


Thanks
Antonnys


All times are GMT -4. The time now is 10:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.