View Full Version : Copying Folder

09 September 2005, 08:15 AM

I can copy files with "sysFile -copy". But I can't copy folders with this command. Any idea ?

Thank you

09 September 2005, 03:15 PM
use the "system" command like so:

system "[doscommandforcopy] myFolder"

I really forgot the DOS command, so sorry.....

09 September 2005, 02:28 AM
use xcopy

in console, type > xcopy /? to find out the options.

09 September 2005, 05:59 PM
thanks for post

xcopy is great, but I have no idea how can I use it with mel. I try so many way to do that. But I coudn't. any idea ?

09 September 2005, 08:54 PM
system "xcopy /d C:\\test1 c:\\test2";

this will copy the files in C:\temp1 to c:\temp2
u can use mel to construct a string to do this for u..

09 September 2005, 08:54 AM
thanks again

here the code if you copy all files and folders.

system "xcopy D:\\fromhere D:\\here/s/e";

CGTalk Moderation
09 September 2005, 08:54 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.