Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Copy yesterday's log file to another folder based on file name

$
0
0

Hi

I am getting log files on daily basis with its date in *yymmdd.log format. i need to copy only  y'days log file to another folder.

 would realty appreciate if you can provide some help on this.

the files i have are with following names.

u_ex141225.log
u_ex141224.log
u_ex141223.log
u_ex141222.log
u_ex141221.log
u_ex141220.log
u_ex141219.log


i need to copy y'days log file as it is to another folder every day once.

Thanks in advance.

Live Logic


Viewing all articles
Browse latest Browse all 6937

Trending Articles