Sumesh BNR
asked on
script/batch file to copy some selected folders using robocoy or xcopy
I am looking for a script/batch file to copy some selected folders using robocoy or xcopy my source folder structure ; the main folder is CODE under the CODE folder there are sub folders as 01 ,02 and so on around 500 folders.I want to copy some specific folders say 2010_10_21 and 2010_10_22 from inside each subfolders to a destination directory called \\myserver\CODE_2010_10 with the source folder structure each subfolder have folders nmed other dates so the scrip t need to select the two dated folders only .please help.
Use following command for xcopy.
xcopy /e /h /r /y "SourceFolder" "DestinationFolder"
Thanks
Saugata
xcopy /e /h /r /y "SourceFolder" "DestinationFolder"
Thanks
Saugata
ASKER
No I need a script
Try this..
Thanks
Saugata
Thanks
Saugata
@echo off
set source=Type here your full source path
set destination=Type here your full destination path
xcopy /e /h /r /y "%source%" "%desstination%"
ASKER
how to loop for 500 sub-folders 01,02,03 and so on?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good job
Glad that helped, thanks.
~bp
~bp
Just google it, this will give you what you need in GUI format.