Question
2
Replies
2129
Views
BankOfAmerica
Posted: June 12, 2017
Last activity: October 16, 2018
Closed
Solved
Copy folder from one location to another location
Hi,
Is there a way to automate copying a folder from one location(shared folder) to another location (C drive) ? Any suggestions on how this can be automated.
Appreciate your time!
Thanks,
Harika.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Use File.Copy from System.IO. To access .NET static methods, right-click on the Toolbox and select Choose Items. When the dialog appears switch to the Pega Robotics Static Members tab. Select "From Global Assembly Cache" and then from the dropdown select "mscorlib, Version=4.0.0.0". From there you can select File and Copy.
From the Toolbox you can now use File.Copy in your automations.