how to write a bat file to copy a folder [with sub-directory inside] to another hard disk and name the folder with system date, then delete all the original files
Posted on 2011-03-23
I would like to move my videos and pictures from my laptop to an external hard disk, I think to create a .bat file to carry out the task will be ideal.
1. I want to create a folder on the external hard disk with the name of system date e.g. if today is 23 March 2011, the folder will be named 23-03-2011 or similar format
2. then move all my files created under d:\my documents\my picture and d:\my documents\my videos\ [with sub-directories under both] to this new folder name 23-03-2011.
which is the best waqy to do it, to move all files in all these folders to the new one, or to copy all files to the new folder, then, delete the files in the original folders, I am afraid some system files might not be able to be moved as well. please advise
can some one show me the best way how to create this batch file ?