0

Yes, I found this superuser question, but it misses the different directory strucutre.

I have files on the server that are in a directory structure

\server\dir1\file1, \server\dir1\file2, \server\dir3\file9, and so on

Some of the files are on a client computer. But on the client computer all files are in one directory.

Now I want to copy all files (regardless of subdirectory on server) from the server to the client that are already on the client and replace the client version.

any idea how to do that?

thank you Daniel

DeepB
  • 11

1 Answers1

0

After a bit of trying I found out where I was wrong, this is the working script:

net use /delete x:
net use x: \\server\share 
cd /d x:
FOR /D /r %%G in ("*") DO robocopy %%G C:\test /XL /Z /XO
net use /delete x:
DeepB
  • 11