Page 1 of 1

How to copy an item in the folder in user code?

Posted: Wed May 24, 2017 11:18 pm
by atruon
I tried to copy a project using file class in C#. However, I realized that its copy is .txt file, not the actual project. Is there any way to write a code to copy exactly a project?

Re: How to copy an item in the folder in user code?

Posted: Thu May 25, 2017 9:05 pm
by Vega
Since Ranorex sits on the .NET framework, you have a lot of power and flexibility at your disposal. However this may be more easily solved using some built in windows command line tools like xcopy (Copies files and directories, including subdirectories) from within Ranorex :

https://www.microsoft.com/resources/doc ... x?mfr=true

Re: How to copy an item in the folder in user code?

Posted: Thu May 25, 2017 10:37 pm
by tvu
You can write a batch file that copies the desired files and then call it from a recording.

Re: How to copy an item in the folder in user code?

Posted: Tue Aug 08, 2017 10:17 pm
by atruon
Thanks guy!