Hello, my robot is looping through files in a folder and I would like it to remove spaces from the file name, how can I do this?
1 Like
1 Like
Thank You, but robot removed spaces in variable but not in folder.
You need to use rename file activity @sullivanne
Regards,
Use Rename File Activity @sullivanne
Regards
Hi,
Maybe something like this.
Path.GetFullPath(YourFilePath).Replace(" ","")
I have error: The source doesn’t exist
Can you please print the currentItem in immediate panel or message box activity
Regards,
Thank You.
Use this in Rename File activity.
Path.GetDirectoryName(currentItem)+"\"+Path.GetFileNameWithoutExtension(currentItem).ToString.Replace(" ","")
This should remove the file name spaces.
Thanks,
Ashok