我正在使用脚本(在lotusscript中创建),我想获取文件的路径。在命令@FileDir的lotusscript中是否有解决方案?
谢谢!
答案 0 :(得分:2)
没有确切的命令,但这应该解决它。
Dim x as String
x = StrLeftBack("c:\notes\data\test.nsf", "\")
print x
此处有关命令的更多详细信息:
获取文件名。
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/