Flo*_* M. 1 lotus-notes file delete-file
在我的lotusscripy中我创建了一个外部文件,我在其中"打印"了一些行,我关闭它然后我用Shell函数运行它:
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)
Run Code Online (Sandbox Code Playgroud)
shell函数运行正常,它正在运行的文件.
在此之后我就放了
Kill fileNum% 'which should delete the file
Run Code Online (Sandbox Code Playgroud)
另外,我试图添加
Sleep 2 'before the Kill statement but I get the same error: Path/file access error.
Run Code Online (Sandbox Code Playgroud)
谢谢你的时间!