Hi, how do I get the filename into a variable? My file name is - 90289,8383
I’d like the robot to get this name into a variable (without the extension).
Thank You! ![]()
Str_FileName=Path.GetFileNameWithoutExtension("Filename")
Input Path
"C:\Users\rlgandu\Documents\UiPath\VirginInvoice\BILL.1010089_10170377.pdf"
1 Like
Hi @sullivanne
Try this:
Assign-> filepath = "yourfilepath"
Assign-> Output = Path.GetFileNameWithoutExtension(filepath)
Regards
Hi @sullivanne
Path.GetFileNameWithoutExtension("C:\path\to\your\file\90289,8383.txt")
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

