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

Powershell Script for moving 3 part file name according to year and month.

$
0
0

hello,

I am not powershell genius

I have one folder full of PDF files, something like this,

CC_F123486_20100617104742.pdf;

last part is 2010 year, 06 is month, I would like to move all files like this to my particular june folder in destination, on same server,

Which script I can run in powershell to do this?

as I have some files from year 2012 and 2011 as well, do not want all mix up

can any one help?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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