Forum Discussion

trpe71's avatar
trpe71
Level 4
6 years ago

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, doe...
  • ChrisLangevin's avatar
    6 years ago

    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