This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Given this file path
I would like the resulting File Name
MO-2019Q2-61958-CLD
I understand there is File output using the input tool, however, this is part of an app I am building,
the file input is using a Macro where it is reading multiple tabs and combining them, however part of the requirement for this is app is to have the file name.
thank you
Solved! Go to Solution.
Hi @pvara ,
Try FileGetFileName([Field1])
ex : input : c:\Users\abc\Downloads\SampleData.xlsx output : SampleData
Regex for filename : .*\\(.*).xlsx
.* : any zero or more characters
\\ : last back slash ( regex is greedy by default)
(.*) : return whatever matches in brackets i.e file name
.xlsx : match .(any) followed by xlsx
Thank you that worked!