I’m trying to set up a script to check a bunch of users old profiles and copy the favourites folder if it exists, but the CopyFolder method is telling me ‘Path not found’, although it doesn’t say if this is the destination or the source.
The portion of the code that is causing me troube is this –
objFSO.CopyFolder old_favourites_unc, new_favourites_unc, true
The full code is in this PasteBin – http://pastebin.com/w9yXuAQ1
I chack both the destination and the source for existence before the copy, and that is ok, so I’m a little lost as to what I am doing wrong. Any advice? Thanks.
This is the error with source folder.
if the source does not contain wildcards then destination folder is created automatically if not exist.