Good morning,
I would like to copy a folder & all contents of it (FOLDER) from a host machine (HOST) to multiple computers on a network. If I have, say, 6 computers (COMPUTER1, COMPUTER2, etc), how can I copy FOLDER to the C: drive on these machines? I am able to access the C drive of each machine via UNC \\COMPUTER1\C$.
something like this:
that doesnt include subfolders
in order to take care of subfolders you need to use DirectoryInfo..GetDirector
and make it recursive
Hope it's what you need
Open in new window