MS-DOS xcopy makes it possible to COPY a newer file over an older one. Is there an equivalent for MOVE?
Posted on 2010-09-05
I have fallen into a classic problem in iTunes which raises a more general question.
I have all of my MP3s on my D:\ drive in D:\Music. Having set the iTunes library folder to D:\Music, I now find a directory called D:\Music\Music
And having copied and backed up my files several times, I now have D:\Music\Music\Music, which is also full of music, much of it the same as higher up the tree.
Not quite sure how this has happened but I have seen it before.
I'm trying to consolidate all the files into the top level, D:\Music, before allowing iTunes to organise it all.
xcopy is great for copying only a newer file over an older.
But is there an equivalent for MOVE? i.e. move the newer file over the older file, or if it's not newer just delete it?
Yes sure I could write a VBScript or a VBA macro but is there a one-line MS-DOS command that can do this?
Couldn't find anything obvious through Google. Then again maybe I'm not looking hard enough.
So even though this arose through iTunes, it would be of generic use hence I felt it worth asking this illustrious grouping.