I am writing a script to backup all word docs on a users PC to a mapped network drive. My problem is I want to retain the directory structure. ie if a doc file was found at C:\documents\sales\june\monthly.doc then it should be copied to H:\documents\sales\june\monthly.doc, creating the directories on the fly.
Is there an easy way to do this? at the moment my script copies all files into one directory, so files with the same name get overwritten.
Is there an easy way to do this? at the moment my script copies all files into one directory, so files with the same name get overwritten.