Question6Replies879Views Mangesh Walhe Member since 2018 15 posts PEGA Posted: September 12, 2018Last activity: September 25, 2018 Closed Solved How to rename a file using FileUtils?How do we rename a file using FileUtils?Tried using Move twice by using a temporary file and location, but I am worried about failure in moving the file second time, as it will leave back the temporary file, which is not good.Any thoughts? Robotic Process Automation ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 2 years agoKonstantin Serditov PEGA replied to Mangesh WalheYou do not need to apply Move twice. You can simply specify new name in the same location and it will do the rename. Be aware that file operations may throw exceptions, so, don't forget to wrap it with Try-Catch. Posted: 2 years agoMangesh Walhe PEGA replied to Konstantin SerditovIt had given me an error when I tried with the target project. And I understood the Help page wrong which says 'The source and destination paths cannot be the same.' http://help.openspan.com/80/ May be should have tried independently before posting the question. Anyway. Thanks a lot!!! Posted: 2 years agoMangesh Walhe PEGA replied to Mangesh WalheThank you everyone for helping out! @Moderators, This thread can be closed. Posted: 2 years agoUpdated: 2 years agoLochan_DV MOD replied to Mangesh WalheThanks for marking the Correct Answer! Posted: 2 years agoRaveendra Incessant technologies pvt ltd replied to Mangesh WalheBelow link might help you https://community1.pega.com/community/product-support/question/file-listener-renames-processed-files-time-stamp-numbers Posted: 2 years agoGayatri incessant replied to Mangesh WalheHI, This link might help you.