I am working on an application for a customer that uses the LotusScript “Kill” statement to delete a temporary file. Works great on my systems, but at my customer site, the kill statement runs like it doesn’t exist. No error message…just doesn’t work. I am therefore ruling out my code as the problem because it runs fine in my test environment.
Their antivirus and windows gurus didn’t think anything with Mcafee or windows NTFS file permissions was “wrong”, as the user can go into file manager and delete it no problem.
Notes ECL allows the action.
The feature is in the left frame, a Notes form with meta data, in the right frame the acrobat file displayed via the IE control. The Queryopen script on the form detaches the PDF to a temp PDF file (using “ap” plus the NOTEID of the document plus “.pdf”) and also saves the name to a Profile keyed for the user. The right frame launches a URL to the file name in the Profile. Works excellent. But then I try to delete the file on disk when the user leaves the document…that is where Kill statement comes into play. In the Queryclose, I Kill the same file name by reconstructing the name using the NoteID. But again, Kill just doesn’t work (at the client site).
One thing that may be a clue…but I am not sure how to understand this, is when I open a document here, the Notes window tab says “C;\notes\data\ap542.pdf” but at the client site the window tab says "ap542.pdf (no path name). I asked about how they run Notes, and it is the same as my installation…all local, no terminal server or shared EXEs or anything. A straight-up local installation.
I also tried the NAME function to just rename the temp file to overwrite a temp file name, but that doesn’t even work here. So I gave up that approach.
I am stumped…and of course this capability is part of a new feature that they really need (and I sold them on it).
I have of course searched everywhere for an answer (web, IBM and VB/MS forums, etc.), but no one except me has run into this, I guess. Obvious syntax problems with the Kill statement don’t apply here because it works great here. Some other mysterious power at work at the client site that I don’t yet understand (call me grasshopper).
Thanks for any help!