How to create and replace the old docx with new rename

yes i did that but in order for it to be same existing name for the if statement to run it has to be renamed first but since it has exist it cant be renamed

@superpunchypp

Then check in the folder if same file exists using this condition in if

Directory.Getfiles("Folderpath",renamenmename + "*").Count>0

This also to be used in if codnition only and on else side you have no file with name on then side you have a file with same name

Also rather than creating multiple topics for same and also asking same question incremnetqlly…it would be good if you can tell what all you need at once and maintain only ine topic…I see atleast 7 topics created for same which will not help anyone as every update will be in different thread

Cheers

Hi @superpunchypp ,
This’s step check newname before rename


regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.