I read alot of guides about to copy directories. On SO also read the posts
- Commmand line command to copy entire directory (including directory folder) to another directory
- copying all contents of folder to another folder using batch file?
but nothing is working for me. I am using Window 10 Pro 64bit version. My directory looks like
myfolder | ---folder1 ---folder2 | ---sample.txt
The expected output is
myfolder | ---folder1 | ---folder2 | ---sample.txt ---folder2 | ---sample.txt
At command prompt, my present working directoy is
When I tried with belows
robocopy folder2 folder1 /COPYALL /E xcopy folder2 folder1 /s /i
only sample.txt was copied to folder1. What's I am wrong ?