Failed .eml files
Hello,
I have a large number of failed .EML SMTP items to re-run but moving them folder by folder manually to an upcoming folderfor processing will take days since it is every minute for 3 days, does anyone by chance have a robocopy or xcopy script that will move only the files and not the folders? I have been messing with this but have not found the right switch to omit moving over the folders and have this so far but it also copies the folders, something that searches out only .eml files would be great then it could run from the root. Any info on this would be very appreciated
Testing this ---Robocopy "W:\test source" "V:\test dest" /s /mov /xd
Thanks!
One easy way to do this is with PowerShell:
Get-ChildItem -Path "W:\test source" -Recurse -File -Filter "*.eml" | Move-Item -Destination "V:\test dest"
This recurses the source directory, pulls out all the files of type .eml from the subfolders, and dumps them all into the single destination directory you choose.
You can also substitute the Copy-Item cmdlet if you'd like to leave the original in place.
--Chris