Requires PS 3.0 This is a two lines code snippet to move matching files in a source folder to another folder. #============================== $SourceFolder = "C:\File_monitor_records\" # Find all files matching *.csv in the folder specified # Find csv files with 2016 in its filename Get-ChildItem -Path $SourceFolder -Filter *2016*.csv | move-item -destination C:\File_monitor_archives\2016\ #============================== -Filter *2016*.csv –adjust or create your own pattern, use regex if necessary Test the pattern before moving the files to make sure correct files are being moved. Check and double check, to avoid wasting time and effort. This will just like matching files. Get-ChildItem -Path $SourceFolder -Filter *2016*.csv Move files and change file name: http://quickbytesstuff.blogspot.sg/2015/06/powershell-move-files-and-change-file.html ================================ Free Android Apps: C...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.