Skip to Content
0
Feb 01, 2011 at 01:13 PM

How to copy folders and content to other folder automatically

136 Views

Hi experts,

I want to create a scheduler task for copy folders (incl files and other folders) to another folder. I found solutions

[blog|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5f7ced90-0201-0010-589f-8eff15a14072?QuickLink=elearn&overridelayout=true] and [How to copy one file from one folder to another in KM programmatically|https://forums.sme.sap.com/thread.jspa?threadID=93775☆t=0&tstart=0] and [File copy in KM not working from a par file.|http://forums.sdn.sap.com/thread.jspa?threadID=1870415]

to copy files. But how to copy a folder (incl the documents and folders underneath)?

Example:

folderx/foldera/folderb/xxx.txt

folderx/foldera/folderb/yyyy.doc

folderx/foldera/aaa.txt

to:

folderxbu/foldera/folderb/xxx.txt

folderxbu/foldera/folderb/yyyy.doc

folderxbu/foldera/aaa.txt

thanks in advance,

Vo.