Lotus Notes - @FileDir命令

时间:2013-09-03 11:40:40

标签: lotus-notes lotusscript

我正在使用脚本(在lotusscript中创建),我想获取文件的路径。在命令@FileDir的lotusscript中是否有解决方案?

谢谢!

2 个答案:

答案 0 :(得分:2)

没有确切的命令,但这应该解决它。

Dim x as String
x = StrLeftBack("c:\notes\data\test.nsf", "\")
print x

此处有关命令的更多详细信息:

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/LSAZ_STRLEFTBACK.html

获取文件名。

Const filename = "c:\notes\data\test.nsf"

Dim x as String
x = StrLeftBack(filename, "\")
if x <> "" then x = StrRight(filename,x + "\")
print x

答案 1 :(得分:1)

我去年发布了一些代码来执行文件操作,包括提取路径名。 http://blog.texasswede.com/code-expanded-class-for-file-functions/