Fonz
Premium Member
Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
|
trying to move files from one folder to another
but i dont want to overwrite same name files
ie Corsasport.doc in destination not to be overwritten by Corsasport.doc
only thing i can find is /y which overwrites existing files without prompting, i just want it to ignore such files.....is this possible and if so how?

[Edited on 21-01-2008 by Fonz]
|
BlueCorsa
Member
Registered: 14th Jan 04
Location: Midlands Drives: MB SLK250 CDI
User status: Offline
|
Don't think DOS is clever enough to rename them if the same name already exists. Could use REN *.doc *1.doc then use MOVE I suppose?
|
James_DT
Member
Registered: 9th Apr 04
Location: Cambridgeshire
User status: Offline
|
You'd need to use a batch file to check if the file name exists in the new location. If it does, move to a new name and if it doesn't, just move it.
|
Fonz
Premium Member
Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
|
i'm not trying to rename.
i'm trying to move from one folder to another. however some files share the same name, the distination folder having the more recent copy
i want all files moved across, except those that share a name, these can be ignored. i can only find help which will move the files and OVERWRITE the same name files, not IGNORE them
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Have you tried a test with the /n command instead of /y?
|
Fonz
Premium Member
Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
|
if it was that simple i wouldn't have posted
NB /n = Copies using the generated short names
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Damn. TBF Fonz, MSDOS isnt that clever, can't you just do it in Windows?
|