PC Review


Reply
Thread Tools Rate Thread

Copy files created since?

 
 
James Goodman
Guest
Posts: n/a
 
      26th Oct 2004
We have a folder which contains several hundred sub-folders. Each of these
sub-folders contain hundreds of image (jpg) files.

Most of these files do not change, <100 per week. At the moment, I am
copying every file to a DVD, before copying them off the CD onto the target
computer (disconnected). Because I am copying every image, I have to copy
approx 1GB of images which takes quite a while.

I wrote a VB function which compares files on the DVD to the target
computer, & if different copies them. This makes the target copy fairly
fast, but copying 1GB of images onto a DVD in the first place is a waste of
time.

I therefore want to copy only files created in the last n days, whilst
preserving the folder structure. If I can only copy the the new files, I
could reduce the copy size to approx 50MB!

Any suggestions?

--
Cheers,

James Goodman


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      26th Oct 2004
You can use;
xcopy /d:m-d-y

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"James Goodman" wrote:
| We have a folder which contains several hundred sub-folders. Each of these
| sub-folders contain hundreds of image (jpg) files.
|
| Most of these files do not change, <100 per week. At the moment, I am
| copying every file to a DVD, before copying them off the CD onto the
target
| computer (disconnected). Because I am copying every image, I have to copy
| approx 1GB of images which takes quite a while.
|
| I wrote a VB function which compares files on the DVD to the target
| computer, & if different copies them. This makes the target copy fairly
| fast, but copying 1GB of images onto a DVD in the first place is a waste
of
| time.
|
| I therefore want to copy only files created in the last n days, whilst
| preserving the folder structure. If I can only copy the the new files, I
| could reduce the copy size to approx 50MB!
|
| Any suggestions?
|
| --
| Cheers,
|
| James Goodman
|
|


 
Reply With Quote
 
James Goodman
Guest
Posts: n/a
 
      26th Oct 2004
Unfortunately that uses the modification date, rather than the creation
date. Because these images are coming from digital cameras (with incorrect
dates set most of the time!), the modification date is, more often than not
incorrect. The creation date is reliable, as it is the date the file was
copied onto our server...



--
Cheers,

James Goodman
"Dave Patrick" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You can use;
> xcopy /d:m-d-y
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "James Goodman" wrote:
> | We have a folder which contains several hundred sub-folders. Each of
> these
> | sub-folders contain hundreds of image (jpg) files.
> |
> | Most of these files do not change, <100 per week. At the moment, I am
> | copying every file to a DVD, before copying them off the CD onto the
> target
> | computer (disconnected). Because I am copying every image, I have to
> copy
> | approx 1GB of images which takes quite a while.
> |
> | I wrote a VB function which compares files on the DVD to the target
> | computer, & if different copies them. This makes the target copy fairly
> | fast, but copying 1GB of images onto a DVD in the first place is a waste
> of
> | time.
> |
> | I therefore want to copy only files created in the last n days, whilst
> | preserving the folder structure. If I can only copy the the new files, I
> | could reduce the copy size to approx 50MB!
> |
> | Any suggestions?
> |
> | --
> | Cheers,
> |
> | James Goodman
> |
> |
>
>



 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      26th Oct 2004
On Tue, 26 Oct 2004 17:57:15 +0100, "James Goodman" <jamesATnorton-associates.co.ukREMOVE> wrote:

>Unfortunately that uses the modification date, rather than the creation
>date. Because these images are coming from digital cameras (with incorrect
>dates set most of the time!), the modification date is, more often than not
>incorrect. The creation date is reliable, as it is the date the file was
>copied onto our server...


Use a technique like:

@echo off
setlocal
for /f "Tokens=*" %%a in ('dir c:\zipnew\*.* /b /a-d /s /a') do (
for /f "Tokens=1-3* Delims=/ " %%b in ('dir "%%a" /TC ^|find /I "%%~nxa"') do (
if "%%d%%b%%c" GTR "20041016" copy "%%a" "D:%%~Pa*.*"
)
)
endlocal

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      26th Oct 2004
On Tue, 26 Oct 2004 17:57:15 +0100, "James Goodman" <jamesATnorton-associates.co.ukREMOVE> wrote:

>Unfortunately that uses the modification date, rather than the creation
>date. Because these images are coming from digital cameras (with incorrect
>dates set most of the time!), the modification date is, more often than not
>incorrect. The creation date is reliable, as it is the date the file was
>copied onto our server...


Use a technique like:

@echo off
setlocal
for /f "Tokens=*" %%a in ('dir c:\zipnew\*.* /b /a-d /s /a') do (
for /f "Tokens=1-3* Delims=/ " %%b in ('dir "%%a" /TC ^|find /I "%%~nxa"') do (
if "%%d%%b%%c" GTR "20041016" copy "%%a" "D:%%~Pa*.*"
)
)
endlocal

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      26th Oct 2004
On Tue, 26 Oct 2004 17:57:15 +0100, "James Goodman" <jamesATnorton-associates.co.ukREMOVE> wrote:

>Unfortunately that uses the modification date, rather than the creation
>date. Because these images are coming from digital cameras (with incorrect
>dates set most of the time!), the modification date is, more often than not
>incorrect. The creation date is reliable, as it is the date the file was
>copied onto our server...


Use a technique like:

@echo off
setlocal
for /f "Tokens=*" %%a in ('dir c:\zipnew\*.* /b /a-d /s /a') do (
for /f "Tokens=1-3* Delims=/ " %%b in ('dir "%%a" /TC ^|find /I "%%~nxa"') do (
if "%%d%%b%%c" GTR "20041016" copy "%%a" "D:%%~Pa*.*"
)
)
endlocal

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
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
A program to copy only user-created files? mm Windows XP General 4 26th Apr 2011 05:19 PM
cannot copy newly created files to backup, all existing ok =?Utf-8?B?TkJhdW0=?= Microsoft Excel Misc 3 25th Jul 2006 07:29 PM
Copy files being created Jacqui Microsoft Word Document Management 1 23rd Mar 2006 01:58 PM
Cannot open, move, copy or delete mpeg files created with giga pocket Mitch Windows XP Video 4 4th Jun 2005 11:06 AM
How do I copy files based on 'date created' comparison ag1 Windows XP General 1 6th Nov 2003 04:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 AM.