How to copy files from one folder to another sub folders

Asked by Puneet

Hi,

I am really impressed with the tool, It has saved lot of time in automating simple tasks.
My Question is:
I am trying to copy files from one folder to the another sub folders on the desktop. I know there is drag and drop functionality but i still want to know if there is way to copy files?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

Using Python commands will be much more reliable for files and folders copying so instead of GUI automation you might try something like:

import shutil
shutil.copy(src, dst)

Eugene

Can you help with this problem?

Provide an answer of your own, or ask Puneet for more information if necessary.

To post a message you must log in.