lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Windows Operating Systems

Register


Default CMD command to compare file modified?

Hi, I've got a batch file that I run once a week that copies certain files to a backup directory. Now the thing is some of these files are very large (video edits) and I don't want to copy them if they haven't been modified since the last backup. Is ...


Reply
 
Thread Tools
  #1  
Old 23rd Mar 2008, 09:13
MJM
Donor Group
 
Posts: 399
Default CMD command to compare file modified?

Hi,

I've got a batch file that I run once a week that copies certain files to a backup directory.
Now the thing is some of these files are very large (video edits) and I don't want to copy them if they haven't been modified since the last backup.
Is there a command I can use to compare the modified dates?
Would save me a great deal of pain instead of having to just overwrite everything.
Another thing though... I set folders to be copied. Can I do it so it checks every file within that folder instead of having to list the files individually (which would be impossible for some folders)?
__________________

My System: Toshiba Satellite A200-28P

Processor(s):
Intel Core 2 Duo T8100
Motherboard:
Mobile Intel PM965 Express Chipset
RAM Memory:
1024 + 2048MB DDR2 667
Graphics Card(s):
ATI HD 2600 XT
Sound Card:
Toshiba Bass Enhanced Sound System
Hard Drive(s):
200GB 5400RPM
Optical Drive(s):
DVD Super Multi
Case / PSU:
Satellite A200 Series
Cooling:
Stock
Network / Internet:
Intel 4965AGN
Monitor(s):
15.4" 1,280x800 Toshiba TruBrite
Operating System(s):
Windows Vista SP1 / Fedora i386
  #2  
Old 23rd Mar 2008, 09:45
Donor Group
 
Skill Level: Advanced
Posts: 1,271
Default CMD command to compare file modified?

Is this on Windoze? Download synctoy from Microsoft!

http://www.microsoft.com/downloads/d...displaylang=en
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...

  #3  
Old 24th Mar 2008, 09:21
MJM
Donor Group
 
Posts: 399
Default CMD command to compare file modified?

Quote:
Originally Posted by Mike0001 View Post
Is this on Windoze? Download synctoy from Microsoft!

http://www.microsoft.com/downloads/d...displaylang=en
Yes, it's Windows, but I would definately prefer a batch file I can run instead of this stupid app.
  #4  
Old 25th Mar 2008, 14:05
Donor Group
 
Skill Level: Advanced
Posts: 1,271
Default CMD command to compare file modified?

SyncToy v2.0 Beta


There is a cmdline version called synctoycmd which takes a parameter

"c:\Program Files\SyncToy 2.0 Beta\SyncToyCmd.exe" -R"folderpairname"
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...

Reply

Donate

Register

Bookmarks

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Change Icons for Files?! Not File Types or Folders, Each Individual File. 4D(Fordy(Ford) Ollie Windows Operating Systems 1 26th Jul 2009 05:10
Partitioning using command Prompt vagany Windows Operating Systems 1 16th Jun 2009 07:54
Command Shell icu222much Windows Operating Systems 6 26th Jan 2009 21:57
Linux Distros - Compare - downloads ashaiba Linux & Alternative OS 13 7th Mar 2008 16:04
Command and conquer generals mxmad32 PC & Console Gaming 1 29th Nov 2007 21:39
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.