File rename base on start word of file

Hello Forum,
I would like to rename file base on start word of file. There will be multiple file inside one folder. For example. If file name is start with “Johny”, I would like to rename to “YesPaPa.xlsx”. I created one UIpath Work Flow and attached, but it is not working. It is something wrong. Could you please someone show me , what wrong at my work flow. Thank you so much in advance. Main.xaml (5.1 KB)

Hi,@heinzawhtooaung

  1. Please check if there are spaces in your file name, if you try to replace it with empty
  2. If there are multiple files starting with Johny in your folder, then it will only generate one file and it will be the last one generated , The previous ones will be overwritten

@WangJidong , Thank you so much for your reply. So you mean, my work flow file (Main.xaml) don’t have any error? Is it correct?

Hello,
In this video I do a lot of stuff with Files (Chapter included) :

4:30 Rename files with VB commands
6:00 Move files to do Rename
18:45 How to use the files start the process

Thanks,
Cristian Negulescu

Sign Up Log In