Ciao,
ho questo codice:
ERRORE: Microsoft VBScript runtime error '800a0035'codice:Percorso="c:\hosting\sito\wwwroot\public\FileUploati" Set FileObject = Server.CreateObject("Scripting.FileSystemObject") Set f = FileObject.GetFolder(Percorso) Set fc = f.Files Set Fso = CreateObject("Scripting.FileSystemObject") For Each whatever in fc Nome_File = Trim(whatever.name) Response.Write(Nome_File) Fso.DeleteFile Nome_File ' RIGA DI ERRORE Next set Fso = Nothing set fc = Nothing set f = Nothing set FileObject = Nothing
File not found
Però il Response.Write(Nome_File) mi restituisce il nome del file ma poi dice che non lo trova per cancellarlo!
Cosa sbaglio?

Rispondi quotando
