Sudarshan
Sudarshan

Reputation: 1291

Script: How to copy/move folders dynamically in Windows using commands

I am having a source folder which has folders (say A,B,C) that i should copy to my destination folder, But while copying if my destination folder has a folder say A, then that folder should not be copied, other two folders should be copied to the destination folder.

Upvotes: 1

Views: 555

Answers (1)

Sudarshan
Sudarshan

Reputation: 1291

I myself found a solution for this.

I use XCOPY with the following parameters: /D /Y /R /H /s /i.

E.g.:

xcopy source destination /D /Y /R /H /s /i

Upvotes: 1

Related Questions