In my lotusscripy I create an external file, I "print" some lines in it, I close it and then I run it with the Shell function:
Open "D:\testF.dsx" For Output As fileNum%
Print #fileNum%, "line1"
Print #fileNum%, "line2"
Print #fileNum%, "line3"
Close fileNum%
result = Shell(|path "D:\testF.dsx"|, 1)
The shell function works fine, the file it's running.
After this I just put
Kill fileNum% 'which should delete the file
Also, I've tried to add
Sleep 2 'before the Kill statement but I get the same error: Path/file access error.
Thanks for your time!
The Lotusscript kill statement expects a filename and not a file num. So do this instead:
Kill "D:\testF.dsx"
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments