Total N00b to Powershell and have already got a script that uses Robocopy to copy files and their directory structure to another folder, and a second that then copies them from the subfolders to the root folder. Yes, I've tried searching but can't find anything that helps.
This is the Powershell command for the second step:
get-childitem -rec -include *.* | copy-item -destination 'yourpath'
Is there anything I can add to this so that it doesn't copy files that already exist (according to filename) in the destination directory, ie the root of the folder structure?
Thanks in advance