corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » MS DOS help


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author MS DOS help
Fonz
Premium Member

Avatar

Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
21st Jan 08 at 15:54   View Garage View User's Profile U2U Member Reply With Quote

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
21st Jan 08 at 19:15   View User's Profile U2U Member Reply With Quote

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
21st Jan 08 at 19:29   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
22nd Jan 08 at 08:12   View Garage View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
22nd Jan 08 at 09:14   View Garage View User's Profile U2U Member Reply With Quote

Have you tried a test with the /n command instead of /y?
Fonz
Premium Member

Avatar

Registered: 12th May 06
Location: Newbury, Berks
User status: Offline
22nd Jan 08 at 09:35   View Garage View User's Profile U2U Member Reply With Quote

if it was that simple i wouldn't have posted

NB /n = Copies using the generated short names
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
22nd Jan 08 at 10:59   View Garage View User's Profile U2U Member Reply With Quote

Damn. TBF Fonz, MSDOS isnt that clever, can't you just do it in Windows?

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
HDD probs *help need plz* Corsa Sport Gav Geek Day 35 2529
29th May 03 at 23:12
by Corsa Sport Gav
 
help needed for MS-DOS Corsa Sport Gav Geek Day 5 1111
30th Jul 03 at 15:28
by Sam
 
MS DOS Help Darren Geek Day 3 1091
29th Nov 03 at 20:20
by PaulW
 
URGENT PC Help Needed!! Graham Geek Day 12 1171
20th Jun 04 at 21:36
by James_DT
 
computery question Siberia Geek Day 3 977
19th Oct 04 at 09:19
by Siberia
 

Corsa Sport » Message Board » Off Day » Geek Day » MS DOS help 29 database queries in 0.0081408 seconds