Announcements
No record found.
Hello,
How can I get file name in a file path ?
Thanks by advance
Hatice
*This post is locked for comments
You can use the static method: Docu::splitFilename.
Hi Hatice,
You can use the functions available in the System.IO namespace (::File and ::Path are very helpful) :
System.IO.Path::GetFileName();System.IO.Path::GetFileNameWithoutExtension();System.IO.Path::GetExtension();
Be sure to assert the correct InteropPermission and FileIOPermission permissions.
Best regards,
Klaas Deforche.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Andrew Jones a1x 2
Basit 1