Method to Rename Downloaded File...
I have a bot that finds and downloads a file for me. The download sits on my desktop (with a standard name) and I'm struggling to find an easy way to rename it.
I thought I could use OpenRPA.Windows > Get Element to select the file (which it does no problem) but it opens the file instead of just selecting it.
If I put a "Type Text" element in that presses F2 it works but the file tries to open in the background. Is there a way in OpenRPA to rename a file to today's date without opening it and "Saving As"?
I worked it out with InvokeMethod. Using the System.IO.Move method explained here.
I should have studied the docs more carefully in the first place.
Allan Zimmermann last edited by
@colby-cruwys I never meet a person who starts by reading the docs.
I'm glad you found a solution