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
Linux Android App cheat sheet:
Move files and change file name:
http://quickbytesstuff.blogspot.sg/2015/06/powershell-move-files-and-change-file.html
================================
Free Android Apps:
Click on links below to find out more:
Multiplication Table for early learners
Catholic Rosary Guide for Android:
Divine Mercy Chaplet Guide (A Powerful prayer):
Comments
Post a Comment