This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: Unable to delete a file on server using LotusScript - please read on
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always
Hi,
I am trying to delete a file after processing through a scheduled agent. I was using a third party tool to convert the file to pdf and after conversion I want to delete the original file from server's folder. I tried Kill filepath, but it threw Error deleting file: Path/file access error (75). Then I used the following piece of code.
Print "Initializing FSO object"
Set FSO = CreateObject("Scripting.FileSystemObject")
If Not FSO Is Nothing then
Print "FSO object initialized"
If FSO.FileExists(PDF_OutDir+PDFRandomfilename) Then
Print "FSO object found file to delete "+PDF_OutDir+PDFRandomfilename
FSO.DeleteFile PDF_OutDir+PDFRandomfilename
End If
End if
Set FSO = Nothing
Print "File deleted via FSO object"
I am getting ERROR 213 : OLE: Automation object error. Could anyone help? Thanks.
Feedback number WEBB8LNJUP created by ~Wendy Zentookonyetsi on 09/13/2011
Status: Open
Comments: