Is it possible to update file names(excel files) in a windows folder by fetching filenames from string array? Array is like this {“folder1”,“folder2”,“folder3”} I know that this might be possible to execute via “move” command too but in this case Array would be handy!
yah thats possiible
–use a assign activity like this arr_filepath = Directory.GetFies(“yourfolderpath”,“*.xlsx”)
where arr_filepath is a array variable
–now use a for each activity and passs the arr_filepath as input and change the type argument as string int he property panel
–inside the loop use a MOVE FILE activvity where in the path mention as item.ToString
and in the Destination property mention the file name you want like this “yourfolderpath"+“yournew filename”+”.xlsx"
In my undesrtanding this method applies to case where you want to rename file with a single specific name. I´d like to update five excel files each with a different name. Like in previous message. First file would be folder1, second file folder 2 etc.