I have 2 share folders

\testing\test1 which contain sub folders sub1,sub2,sub3,sub4,sub5
and
\testing\test2 which contain sub folders sub2,sub3
Need to know how to create a batch file on notepad to verify existance of sub folders from test1 and create them on test2 only if they do not exist in test 2

Recommended Answers

All 2 Replies

xcopy with /t and /e options will do this. Type xcopy /? for details.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.