How to split a string with "\"

HI @gokul1904

Try this out

Path.GetFileNameWithoutExtension("C:\Users\hello\Desktop\AP_\Aug 2022\AP_PDF_Invoices\GD TIP 2345 064522.1.pdf")
Path.GetFileName("C:\Users\hello\Desktop\AP_\Aug 2022\AP_PDF_Invoices\GD TIP 2345 064522.1.pdf")

Regards
Gokul

1 Like