Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Copy file to folder with current date

$
0
0
HiI am trying to copy a multiple files the have the current date as the creation date using a wild card but can't seem to get the syntax correct. Any help would be appreciated.Copy-item "D:\Solomon\Solomon IV\EventLog\DD500*.log" (CreationTime -eq (Get-Date)) ("C:\Temp\Emaillogs")

Viewing all articles
Browse latest Browse all 467

Trending Articles