I currently have need to create a script to find all files of certain types (i.e doc, xls, pdf, etc) on a users hard drive and move them into their "my documents" folder, this is as part of an upcoming desktop image refresh.
Ideally the script will also write a line to a log file in a central location just specifying how big the folder is after the file copy.
I've been through everything I can find on the subject, but haven't been able to find a script I can make work for my purposes, note I am not a scripter, I generally just butcher other scripts to fit my needs so please bare this in mind when answering!
I believe my biggest issue is cyclic copying, in that the target folder is a child of the source folder which obviously introduces a loop (and an error when running vbscripts or batch files!)
Please note, I can't use any third party tool to perform this, as it needs to be as easy to roll out as possible.
Thanks in advance.