• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

String Help

Guest
Mar 16, 2007 Mar 16, 2007

Copy link to clipboard

Copied

I am hoping someone can help me. This should be easy but I can not figure it out.

I have search results that return a file name and directory path as follows:

e:\rootdirectory\subdirectory1\subdirectory2\subdirectory3\filename.pdf

There could be several sub directories in the path. All I want to do is get the file name from the end of the path. The path length varies. The only constant is the rootdirectory and subdirectory1

Any help would be greatly appreciated!!

Thanks
TOPICS
Advanced techniques

Views

197

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 16, 2007 Mar 16, 2007
several thing will work for you. try:

#listlast(yourpath, "/\")#

or

#getfilefrompath(yourpath)#


--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com

Votes

Translate

Translate
LEGEND ,
Mar 16, 2007 Mar 16, 2007

Copy link to clipboard

Copied

several thing will work for you. try:

#listlast(yourpath, "/\")#

or

#getfilefrompath(yourpath)#


--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 16, 2007 Mar 16, 2007

Copy link to clipboard

Copied

LATEST
Azadi! Thanks so much!! That worked great! Thousands of good wishes to you! :)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation