Extract basename

One Star

Extract basename

Hello,
I search how I can extract the basename without the extend of a file:
toto.txt --> toto
Thank you for help me
Quartz
Paris (with snow !!) - France
Moderator

Re: Extract basename

Hi,
Using tFileProperties to get the basic information of a file, including the size, basename etc. and then parse the basename on tJavaRow, for example:
(tFileList--iterate-->)tFileProperties--main--tJavaRow
on tJavaRow:
String basename=input_row.basename.substring(0,input_row.basename.indexOf("."))

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.