Hi is it possible to move files from One folder to another Using Robocopy ,
I want to move only Rpt files without overwriting if there exists File with same name, Also files from all subfolders in the directory also shoud moved.
I have done so far Below.
setlocal enableextensions enabledelayedexpansion
rem configure directories
set "source=E:\Source /S"
rem move non existing files to target
rem if we still have files
if exist "%source%\*.rpt" (
rem generate a timestamp
rem rename the remaining files with timestamp
ren "%source%\*.rpt" "*.!timestamp!.rpt"
rem and move the remainig files to target
robocopy "%source%" "%target%" "*.rpt" /fp /njh /njs /ndl /xc /xn /xo /xx /mov
It moves all file from the path, But it does nt move files from the subfolders inside the path.
Please help me.