Page 1 of 1
I need a copy program that only overwrites old files
Posted: Sun Jan 15, 2006 11:56 pm
by phantasmagoria
At the moment I'm working on large numbers of the same files at both home and university and am transferring the two on one of those usb stick things (actually, i just use my camera's xd card, but that's irrelevant).
I'm constantly forgetting to write an important file to the usb stick because I'm in a hurry, or managing to overwrite a newer file with an old one. What I need is a program that enables me to just copy one directory over another one and compares the "modified" date: only overwriting files if the original file is older than the one being copied.
Windows really should do this, but it doesn't

Posted: Mon Jan 16, 2006 12:07 am
by PhoeniX
Sourcesafe > *
But your uni would need it too

Posted: Mon Jan 16, 2006 12:10 am
by PhoeniX
Can't you log into your home directory from home? I can log into mine using an FTP-link system (a web folder I think) and copy files to / from my uni drive
edit:

Posted: Mon Jan 16, 2006 12:12 am
by phantasmagoria
I have done in the past, but the files I'm dealing with are massive ammounts of high quality jpegs.
I can sweet talk the computer guy into letting me install pretty much anything on one of the computers, he's already installed fraps and taken the internet filter off it for me.
Posted: Mon Jan 16, 2006 12:15 am
by PhoeniX
Ah right.. hmm.. I'm sure i've seen something simlar to this but can't think of its name
Posted: Mon Jan 16, 2006 12:18 am
by phantasmagoria
I had a bit of a search on google, and found a few things but they were bloatware crap; i'm looking for something nice and compact, it doesn't really seem like a difficult thing to do.
Posted: Mon Jan 16, 2006 12:41 am
by PhoeniX
hmm.. I could possibly make something reasonably quickly to do this for you. Basically:
Select source dir.
Select destination dir.
Program copies all files from source

destination, if file already exists, and is newer then overwrite, else if its older don't overwrite?
Posted: Mon Jan 16, 2006 12:50 am
by phantasmagoria
exactly that.
If you would that would be utterly grand, but if it's going to take you an excessive amount of time, don't worry too much about it.
Posted: Mon Jan 16, 2006 1:02 am
by PhoeniX
I need to bush up my .NET skills for a programming assignment in it anyway

Posted: Mon Jan 16, 2006 1:03 am
by Freakaloin
.net...lol...
Posted: Mon Jan 16, 2006 1:03 am
by phantasmagoria
well, if you really don't mind then i'll sacrifice my first born in your name, which will bring you great riches
Posted: Mon Jan 16, 2006 1:19 am
by mjrpes
Freakaloin wrote:.net...lol...
A handy language/environment if you want to build a GUI app quick and simple.
Posted: Mon Jan 16, 2006 1:19 am
by Freakaloin
yeah but its still for morons...
Posted: Mon Jan 16, 2006 1:19 am
by raw
Posted: Mon Jan 16, 2006 1:51 am
by Foo
This can be done with a .bat file using the xcopy windows command.
I dont have time to write one, but it should be trivial for Pho or Raw.
Posted: Mon Jan 16, 2006 2:04 am
by obsidian
Posted: Mon Jan 16, 2006 2:06 am
by phantasmagoria
Foo wrote:This can be done with a .bat file using the xcopy windows command.
I dont have time to write one, but it should be trivial for Pho or Raw.
mmm, a batch file would be ideal...i could even run it without having to bother the computer bloke.
Posted: Mon Jan 16, 2006 3:02 am
by PhoeniX
I have something for you to test

Posted: Mon Jan 16, 2006 4:45 am
by Guest
Wasn't the Windows Briefcase supposed to do this?
Posted: Mon Jan 16, 2006 5:40 am
by FragaGeddon
This is what you want:
SyncBack
Posted: Mon Jan 16, 2006 7:51 am
by mjrpes
The problem with copying based off the the 'date modified' is that the date/time windows is currently set to can be off. Not the biggest problem but one that you should keep in mind. That is why lots of backup programs use the 'archive bit' to decide whether or not a file needs to be backed up. However, this raises its own problems if the program you use fails to set the bit and therfore the backup program fails to copy it.
Well, anyway. I use this program called
Cobian Backup. Works for me.
Posted: Mon Jan 16, 2006 12:50 pm
by 4days
Foo wrote:This can be done with a .bat file using the xcopy windows command.
I dont have time to write one, but it should be trivial for Pho or Raw.
:icon14:
run xcopy with /? to see how to use it.
you can also 'touch' files with the copy command, if there's a specific file you want included/excluded.
Posted: Tue Jan 17, 2006 3:30 am
by PhoeniX
Problem solved. If anyone wants the exe (or indeed source) let me know.