PC Review


Reply
Thread Tools Rate Thread

copy but not over-write

 
 
Jack B
Guest
Posts: n/a
 
      13th Dec 2009
I have two folders with over 1000 photo files, and most of the files are the
same, except in folder A, the files have the EXIF data, but not in folder B.

Folder B has slightly more files. How do I copy from B to A
1) without over-writing any files
AND
2) without getting the pop-up that says "Do you want to over-write the file"
for every single file?

In other words, I would like to copy from B just the files that A does not
have.


Jack


 
Reply With Quote
 
 
 
 
mm
Guest
Posts: n/a
 
      13th Dec 2009
On Sun, 13 Dec 2009 00:51:37 -0500, "Jack B"
<(E-Mail Removed)> wrote:

>I have two folders with over 1000 photo files, and most of the files are the
>same, except in folder A, the files have the EXIF data, but not in folder B.
>
>Folder B has slightly more files. How do I copy from B to A
>1) without over-writing any files
>AND
>2) without getting the pop-up that says "Do you want to over-write the file"
>for every single file?
>
>In other words, I would like to copy from B just the files that A does not
>have.
>

Download XXCOPY at www.XXCOPY.com . It's free for personal use (and 40
I think for 2 busilness licenses) and does this and any other kind of
copy you want to do. It runs in a DOS box. There's a Yahoo list
called XXCOPY where even the author participates regularly among
others if you need help to figure it out. Indeed, the only problem is
that it can do so many things the right parameter can get be hard to
find the first time.

Set it up in a .bat file so you know exactly what you're going to say
and can say it again with no change.

If you take out nospam, you can write me and I'll help you figure out
the parms for this.

>Jack
>


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      13th Dec 2009



"Jack B" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> I have two folders with over 1000 photo files, and most of the files are
> the
> same, except in folder A, the files have the EXIF data, but not in folder
> B.
>
> Folder B has slightly more files. How do I copy from B to A
> 1) without over-writing any files
> AND
> 2) without getting the pop-up that says "Do you want to over-write the
> file"
> for every single file?
>
> In other words, I would like to copy from B just the files that A does not
> have.
>
>
> Jack


This little batch file will do it:
@echo off
set Source=c:\Documents and Settings\Jack\My Pics\Folder1
set Targ=c:\Documents and Settings\Jack\My Pics\Folder2
for %%a in ("%Source%\*.*") do (
if not exist "%Targ%\%%~na%%~xa" echo copy "%%a" "%Targ%"
)

Note this:
- Do not retype the code - use copy and paste instead.
- Replace my folder names with actual names.
- Test the code, then remove the word "echo" in the last
line to activate it.

 
Reply With Quote
 
Singapore Computer Service
Guest
Posts: n/a
 
      13th Dec 2009
Hello,

Check out SyncToy
http://www.microsoft.com/downloads/d...DisplayLang=en

Regards,
Singapore Computer Home Repair Service
http://www.bootstrike.com/ComputerService/
Video Conversion VHS Video8 Hi8 Digital8 MiniDv MicroMv
http://www.bootstrike.com/VHSVideoConvert/
"Jack B" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have two folders with over 1000 photo files, and most of the files are
>the
> same, except in folder A, the files have the EXIF data, but not in folder
> B.
>
> Folder B has slightly more files. How do I copy from B to A
> 1) without over-writing any files
> AND
> 2) without getting the pop-up that says "Do you want to over-write the
> file"
> for every single file?
>
> In other words, I would like to copy from B just the files that A does not
> have.
>
>
> Jack
>
>



 
Reply With Quote
 
Jack B
Guest
Posts: n/a
 
      13th Dec 2009

Thanks for the info folks -- I'll give it a try and let you know.


Jack

--------------------------------------------------------------------


 
Reply With Quote
 
Jack B
Guest
Posts: n/a
 
      13th Dec 2009
This looked the easiest, but I couldn't get it to work. It copied Folder2
into Folder1 as one large bit file with no extension.

Jack

----------------------------------------

"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...


"Jack B" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> I have two folders with over 1000 photo files, and most of the files are
> the
> same, except in folder A, the files have the EXIF data, but not in folder
> B.
>
> Folder B has slightly more files. How do I copy from B to A
> 1) without over-writing any files
> AND
> 2) without getting the pop-up that says "Do you want to over-write the
> file"
> for every single file?
>
> In other words, I would like to copy from B just the files that A does not
> have.
>
>
> Jack


This little batch file will do it:
@echo off
set Source=c:\Documents and Settings\Jack\My Pics\Folder1
set Targ=c:\Documents and Settings\Jack\My Pics\Folder2
for %%a in ("%Source%\*.*") do (
if not exist "%Targ%\%%~na%%~xa" echo copy "%%a" "%Targ%"
)

Note this:
- Do not retype the code - use copy and paste instead.
- Replace my folder names with actual names.
- Test the code, then remove the word "echo" in the last
line to activate it.


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      13th Dec 2009

Sorry, can't comment unless I see the code you actually ran.

"Jack B" <(E-Mail Removed)> screv in
news:(E-Mail Removed)...
> This looked the easiest, but I couldn't get it to work. It copied Folder2
> into Folder1 as one large bit file with no extension.
>
> Jack
>
> ----------------------------------------
>
> "Pegasus [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>
> "Jack B" <(E-Mail Removed)> screv in
> news:(E-Mail Removed)...
>> I have two folders with over 1000 photo files, and most of the files are
>> the
>> same, except in folder A, the files have the EXIF data, but not in folder
>> B.
>>
>> Folder B has slightly more files. How do I copy from B to A
>> 1) without over-writing any files
>> AND
>> 2) without getting the pop-up that says "Do you want to over-write the
>> file"
>> for every single file?
>>
>> In other words, I would like to copy from B just the files that A does
>> not
>> have.
>>
>>
>> Jack

>
> This little batch file will do it:
> @echo off
> set Source=c:\Documents and Settings\Jack\My Pics\Folder1
> set Targ=c:\Documents and Settings\Jack\My Pics\Folder2
> for %%a in ("%Source%\*.*") do (
> if not exist "%Targ%\%%~na%%~xa" echo copy "%%a" "%Targ%"
> )
>
> Note this:
> - Do not retype the code - use copy and paste instead.
> - Replace my folder names with actual names.
> - Test the code, then remove the word "echo" in the last
> line to activate it.
>
>

 
Reply With Quote
 
Jack B
Guest
Posts: n/a
 
      13th Dec 2009
Of course -- here is the file which I named CopyNotSame.bat:

@echo off
set Source=c:\datamore\test
set Targ=c:\datamore\test\test1
for %%a in ("%Source%\*.*") do (if not exist "%Targ%\%%~na%%~xa" copy "%%a"
"%Targ%")


Jack

-----------------------------------------------


"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Sorry, can't comment unless I see the code you actually ran.

"Jack B" <(E-Mail Removed)> screv in
news:(E-Mail Removed)...
> This looked the easiest, but I couldn't get it to work. It copied Folder2
> into Folder1 as one large bit file with no extension.
>
> Jack
>
> ----------------------------------------
>
> "Pegasus [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>
> "Jack B" <(E-Mail Removed)> screv in
> news:(E-Mail Removed)...
>> I have two folders with over 1000 photo files, and most of the files are
>> the
>> same, except in folder A, the files have the EXIF data, but not in folder
>> B.
>>
>> Folder B has slightly more files. How do I copy from B to A
>> 1) without over-writing any files
>> AND
>> 2) without getting the pop-up that says "Do you want to over-write the
>> file"
>> for every single file?
>>
>> In other words, I would like to copy from B just the files that A does
>> not
>> have.
>>
>>
>> Jack

>
> This little batch file will do it:
> @echo off
> set Source=c:\Documents and Settings\Jack\My Pics\Folder1
> set Targ=c:\Documents and Settings\Jack\My Pics\Folder2
> for %%a in ("%Source%\*.*") do (
> if not exist "%Targ%\%%~na%%~xa" echo copy "%%a" "%Targ%"
> )
>
> Note this:
> - Do not retype the code - use copy and paste instead.
> - Replace my folder names with actual names.
> - Test the code, then remove the word "echo" in the last
> line to activate it.
>
>



 
Reply With Quote
 
Shenan Stanley
Guest
Posts: n/a
 
      13th Dec 2009
Jack B wrote:
> I have two folders with over 1000 photo files, and most of the
> files are the same, except in folder A, the files have the EXIF
> data, but not in folder B.
>
> Folder B has slightly more files. How do I copy from B to A
> 1) without over-writing any files
> AND
> 2) without getting the pop-up that says "Do you want to over-write
> the file" for every single file?
>
> In other words, I would like to copy from B just the files that A
> does not have.


Yeah - reading everything and seeing your efforts thusfar - I second the
vote for SyncToy.

SyncToy 2.1
http://www.microsoft.com/downloads/d...5-98D0592D8C52

"SyncToy 2.1 is a free application that synchronizes files and folders
between locations. Typical uses include sharing files, such as photos, with
other computers and creating backup copies of files and folders."

SyncToy forums:
http://social.microsoft.com/Forums/e...ynctoy/threads

Some information:
http://www.microsoft.com/prophoto/do...nctoybeta.aspx

And yes - it can do exactly what you asked and it can even keep doing it
(including renames, etc) if need be (or it can be a one-time thing.)

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      13th Dec 2009

The batch file works perfectly well, provided that you undo any line wrap
that your newsreader might have created. Here it is again, this time with
line numbers so that you can see exactly where each line starts. Note that
Line 5 is a long line. Remove the numbers before running the file.

[1] @echo off
[2] set Source=c:\datamore\test
[3] set Targ=c:\datamore\test\test1
[4] for %%a in ("%Source%\*.*") do
[5] (if not exist "%Targ%\%%~na%%~xa" copy "%%a" "%Targ%"
[6] )


"Jack B" <(E-Mail Removed)> screv in
news:(E-Mail Removed)...
> Of course -- here is the file which I named CopyNotSame.bat:
>
> @echo off
> set Source=c:\datamore\test
> set Targ=c:\datamore\test\test1
> for %%a in ("%Source%\*.*") do (if not exist "%Targ%\%%~na%%~xa" copy
> "%%a"
> "%Targ%")
>
>
> Jack
>
> -----------------------------------------------
>
>
> "Pegasus [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Sorry, can't comment unless I see the code you actually ran.
>
> "Jack B" <(E-Mail Removed)> screv in
> news:(E-Mail Removed)...
>> This looked the easiest, but I couldn't get it to work. It copied
>> Folder2
>> into Folder1 as one large bit file with no extension.
>>
>> Jack
>>
>> ----------------------------------------
>>
>> "Pegasus [MVP]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>
>>
>> "Jack B" <(E-Mail Removed)> screv in
>> news:(E-Mail Removed)...
>>> I have two folders with over 1000 photo files, and most of the files are
>>> the
>>> same, except in folder A, the files have the EXIF data, but not in
>>> folder
>>> B.
>>>
>>> Folder B has slightly more files. How do I copy from B to A
>>> 1) without over-writing any files
>>> AND
>>> 2) without getting the pop-up that says "Do you want to over-write the
>>> file"
>>> for every single file?
>>>
>>> In other words, I would like to copy from B just the files that A does
>>> not
>>> have.
>>>
>>>
>>> Jack

>>
>> This little batch file will do it:
>> @echo off
>> set Source=c:\Documents and Settings\Jack\My Pics\Folder1
>> set Targ=c:\Documents and Settings\Jack\My Pics\Folder2
>> for %%a in ("%Source%\*.*") do (
>> if not exist "%Targ%\%%~na%%~xa" echo copy "%%a" "%Targ%"
>> )
>>
>> Note this:
>> - Do not retype the code - use copy and paste instead.
>> - Replace my folder names with actual names.
>> - Test the code, then remove the word "echo" in the last
>> line to activate it.
>>
>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no copy/cut and paste while being able still write =?Utf-8?B?Um9iZXJ0IEJyb3du?= Microsoft Excel Misc 0 28th Jul 2006 02:17 PM
copy and over write *.jpg files Ian Bartlett Microsoft Excel Programming 0 12th Jan 2006 02:08 AM
Copy Write my CD Carl G Windows XP General 9 20th Jun 2005 06:25 PM
copy write of picture =?Utf-8?B?d2VhdGhlcmNoYW5uZWxudXQ=?= Windows XP Photos 2 11th Jul 2004 01:22 AM
copy write on pictures =?Utf-8?B?d2VhdGhlcmNoYW5uZWxmYW4=?= Windows XP Photos 2 20th Jun 2004 09:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.