Hello, I need your help. I want to copy a folder (C:\ABC) to D:\. How can I do that?
Thanks,
Hello, I need your help. I want to copy a folder (C:\ABC) to D:\. How can I do that?
Thanks,
I don't know . . . how about system()?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Could you specify it to me?
system() passes a string to the "shell" [sh/cmd] or whatever. Thus, like me on Windows, I would be able to say system("xcopy stuff A:\stuff"); This is probably system dependant, not portable, etc. Again, on Windows, you might use CreateDirectory[Ex] to um, create the directory and then walk through the source directory with repeated CopyFile[Ex]s to your newly create one. Again, this is a very system dependant thing, but I just mentioned the Windows cause you had C:\
Yes, I work under Windows with Borland. Is there any way to copy the folder directly?
Thanks
Just use
replce the filenames with yours, ok?Code:system ("copy c:\programs\firefox\firefox c:\windows")