try
{
var fsoObject = Server.CreateObject("Scripting.FileSystemObject");
// array of paths - I verified they exist
// (the files are removed if the parent folder permissions are set to
allow it)
for (var i = 0; i < deleteFileArray.length; i++)
if (fsoObject.FileExists(deleteFileArray[i]))
{
var fileObject = fsoObject.GetFile(deleteFileArray[i]);
fileObject.Delete(true);
}
}
catch(e)
{
// Never see this text - file still exists after function call (when
permissions denied)
Response.Write('Error while attempting to delete file</br>');
Response.Write(e.description);
Response.End();
}
// remove a database record here - record is deleted and user is redirected
to another
// page as specified in calling code
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:eY*************@TK2MSFTNGP10.phx.gbl...
Can you post your code?