Robocopy command

robocopysvn

Iam using robocopy's /MIR command to copy the source files from MKS sandbox to SVN working copy and then iam committing to svn repository.this process is needed becasue we are in the process of changing the source control tool from MKS to Subversion.

set mks_path=C:\test
robocopy "C:\test" "C:\testsvn\Source" /MIR /XD "%MKS_PATH%\bin" "%MKS_PATH%\obj" /XF "%MKS_PATH%\project.pj" >>%log%

Now the issue is 1) i cant use robocopy \mir command because robocopy /MIR commad erases files/folders in the destination directory that are no longer in the source directory.
It deletes all the .svn directory from the SVN working copy, after wards, we cant execute any commands apart from svn checkout.
2) I need to filter few files and folders recursively in the MKS_path, i used /XF and /XD, but its filtering those files and folders from top level.

Please suggest me how can i copy the mks source code to SVN path excluding the files and folders recursively.

Best Answer

Have you tried using xxcopy also a tool called Richcopy is good for this sort of thing.