• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

backslash disappears

Hello

I want to get the path of de current database, but without de filename. in lotusscript.
so for example i have the following file.

c:/lotus/notes/test.nsf

what i want to get is:

c:/lotus/notes/

I am trying this with Evaluate("@ReplaceSubString(pad, filenaam, )

when i do this i get the correct path only without the slashes, so i get

c:lotusnotes

how can i correct this.

greetingz Paul
0
pvandelouw
Asked:
pvandelouw
1 Solution
 
martijnmulderCommented:
in the formula it removes the single backslash. try the following:

GLDbPath = Left$(db.FilePath, Len(db.FilePath)-Len(db.FileName))
0
 
pvandelouwAuthor Commented:
Thanks a lot It really works fine.

Greetingz Paul
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now