Note 1: This only works if no one has the to-be-copied-folder open on his/her/… computer. Else it will give an error.
Note 2: The code will give an error if the file location contains a space 'vo.
For example for a 'de Atmosfeer' folder from 12 to 13.
Location on the webdrive of 12: J:\lr\vsv\de-atmosfeer\Atmosfeerbeheer12 The destination folder doesn't exist yet but the code will create it for you.
Open CMD Type the code xcopy J:\lr\vsv\de-atmosfeer\Atmosfeerbeheer12 J:\lr\vsv\de-atmosfeer\Atmosfeerbeheer13 /T /E Press enter
Do you get the question : Does xxx specify a file name or directory name on the target? Press D xx T77
Ready
!
Xcopy is the command that takes care of copying The first destination of the folder (in the example Atmosfeerbeheer12) is the folder to copy from, the second destination is the folder to copy to /T is the command that copies only the directories and not all files. /E is the command that ensures that empty directories and subdirectories are also copied.
Questions? –> S77