How rename file on desktop and delete another file?both excel

hi,
i have this two file
“C:\Users\Vittoria\Desktop\Documents.xlsx” file A
“C:\Users\Vittoria\Desktop\DocumentsOK.xlsx” file B

i need to rename the file B with the path of file A and delete the file A
how can i do this?can you help me?
thanks

Hi,

First, ensure that your files are not opened then move file B to A (with “overwrite” checked)

https://docs.uipath.com/activities/docs/move-file

2 Likes

how can i check if all the file excel are closed?

If you used an Excel Scope, do your operation outside of it (save your changes and close the file),

If you have some troubles, you can check that no element match the exel window, etc.

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