|
Answer» Hi All,
I have some folder 'X'. Each time new files/folders will be created in 'X' I have a batch file which copies the NEWLY created files/folders to another folder 'Y'. we will not delete any files from 'Y' folder. While copying from 'X' to 'Y' it should copy with the same folder structure as in 'X'. And also if some file is already there in 'Y', It should move the file to 'YBKUP' folder (with same folder structure as in 'Y') before overwriting.
Please help meWhat do you have so far ? Hi gpl,
Thanks for your reply.
I have simple copy command in it which copies only files in 'X' folder. I am unable to do it with similar folder structure(including subfolders). It should copy the files with similar structure as in 'X'.
can you please help me...please reply me...CHECK the xcopy command (xcopy /? at the command prompt) - this will enable your to copy a directory structureThanks gpl...
Thing is, before copying it should take up backup of the files which are there in 'X' with same folder structure and then it should copy accordingly, it should not take all the files backup each time.
And moreover xcopy is not working in my system. I am using MS windows XP professional 2002 version.
Please GUIDE me...Please help me...If You type help xcopy at the dospromp you will GET help. ypu might be told to use the command robocopy instead
|