Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2