Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
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:

Unable to delete a file on server u... (~Wendy Zentooko... 13.Sep.11)
. . To use low level commands like dir(... (~Vanessa Prepon... 16.Sep.11)
. . . . The agent already has the security ... (~Wendy Zentooko... 19.Sep.11)
. . . . . . I think You're on to the right answ... (~Vanessa Prepon... 21.Sep.11)
. . . . . . . . Thanks for your response (~Wendy Zentooko... 22.Sep.11)
. . Deleting a file from the server (~Justin Xanlubu... 29.Sep.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS