Hi...I am trying to automate the process where I run a search and copy the files to a network folder. What is the command to copy found files from FlleLocator Network edition?
Found the answer --
$folder_list = Get-Content -Path '.\results.txt'
$destination_folder = '.\found\'
foreach ($folder in $folder_list) {
Get-ChildItem -Path $folder | Copy-Item -Destination $destination_folder -Recurse -ErrorAction SilentlyContinue
}
else {
Write-Warning "Folder '$folder' not found.."
}
Note - You will get a lot of 'can't find the file....' errors but if you look in your 'found' directory, you'll see that the files did copied over (keeping folder heirarchy).