Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to select files in a folder with yesterday's date as part of the filename?

$
0
0

Hi there,

I need to setup a scheduled task to daily back up some log files that have yesterday's date as part of the file names.  How can I make use of PowerShell scripts for wildcard selection on the files?

Sample file name: 2014-06-11dailylog1.bak

Thanks

Richard Poon


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>