File Name

File Name - File name without Path name - Messages

#1 Posted: 11/18/2022 6:11:05 AM
Friso Oonk

Friso Oonk

0 likes in 2 posts.

Group: User

Hello All,

i am a new user of Smath.

When we use the field "file name" it will display the filename with the complete path.

Is it possible to display only the file name with the Extension

Friso
#2 Posted: 11/22/2022 8:31:25 PM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

Greetings!

This is a great question! As such, I took the past few days researching it and the answer I have to your question is: "kind·a"

As you said, inserting a FIELD will result in the full filepath and I have not been able to 'format' this field to report just the filename.

However, Page Setup handles these fields differently! As such, referencing &[FILENAME] as an entry into the Header/Footer will print the filename without the filepath.
Please note, that the Page Setup Header/Footer inputs will only populate if the Header/Footer regions of your Worksheet are left blank.

SMath_filenameWithoutFilePath.jpg


Hope this of help!

- Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#3 Posted: 11/23/2022 6:41:53 AM
Friso Oonk

Friso Oonk

0 likes in 2 posts.

Group: User

Hello Kenny,

Thanks for your solution and we are going to use this in the future.

If it good by as a format in the insert field, we would prefer this.

Friso
  • New Posts New Posts
  • No New Posts No New Posts