Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Powershell Script to append date to pdf's and move all pdf's to another folder

$
0
0

I need to move reports nightly from the server to a folder on the network. When I create a new file in ISE and put my code i it I see the following message. The string is missing the terminator. Where does the terminator go on this string?

Get-ChildItem -Path C:\Reports\' | ForEach-Object 
{Copy-Item -Path $_.FullName -Destination " C:\Micros Reports\$($_.BaseName,(Get-Date).ToString("MMddyyyy"),$_.Extension)"}



Viewing all articles
Browse latest Browse all 4189

Trending Articles



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