Reputation: 2169
I am using a script ( created in lotusscript ) and I want to get the path of a file. Is there a solution in lotusscript for command @FileDir?
Thanks!
Upvotes: 0
Views: 426
Reputation: 2795
I posted some code last year to do file operations, including extracting path name. http://blog.texasswede.com/code-expanded-class-for-file-functions/
Upvotes: 1
Reputation: 9349
There is no exact command, but this should solve it.
Dim x as String
x = StrLeftBack("c:\notes\data\test.nsf", "\")
print x
More details on the command here:
To get just the filename.
Const filename = "c:\notes\data\test.nsf"
Dim x as String
x = StrLeftBack(filename, "\")
if x <> "" then x = StrRight(filename,x + "\")
print x
Upvotes: 2