Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I would like to know how to copy a folder across and its sub directory, but only if the folder or files in the current director do not exsist.
EG. I have a folder named Test with a file named file, however someone i know has a folder named Test and a file named file. However he also has a folder within Test named Test2 and a file named file2, within the directory test. So i want to be able to copy many folders across to the original folder on my computer, without his version over writting mine, but it needs to copy accross any files or folders that are not there.
This cannot be done manually as we are talking 100's of folders!
Thanks J

Maybe this is what you are looking for? (Pssst...the best thing about it is it's FREE!)
i_XpUser

J,
i know you are probably looking for a more automated approach, but you can do what you want with a 3-step approach. It'll at least be a workaround until you find a better solution.
Assuming you have two folders (folder1 and folder2) and you want to copy the content of folder2 into folder1 ONLY when there is not an existing file of the same name.
1. Copy the conents of folder1 to a temporary location (tempfolder1).
2. Copy the contents of folder2 into folder1 (any files with the same name will be overwritten)
3. Copy the contents of tempfolder1 back into folder1 (any files that were overwritten with folder2 files will be overwritten again back to their original state.)It also wouldn't be too dificult to script this to make it more automated.
Michael J

At a DOS prompt you could try:
COPY source destination /-Y
The -Y will prompt to confirm you want to overwrite a file. Say no to each file you do not want to overwrite.

Karen's Replicator
I use it weekly. It is similar to the one XpUser suggested. It's free and it allows you to schedule the tasks. I did not see that feature at XpUser's link.Bryan

THanks for the reply's
Bryco that looks great, had a quick play around with it before i went to work, however i did a test run and it copied everything, even things that were there. Anybody know of any other programs.
XPUser thats too basic lol, thanks anyway.

![]() |
Upgrad WIN NT 4 server to...
|
ctfmom REFUSES to stop st...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |