Using my below given script, I simply wanted to cut-paste all the .dat files created today from source to destination, where source is a network path.
@echo off
In PowerShell:
$src = '\\10.xx.xx.xxx\shared\files' $dst = "D:\Data\Backup\$(Get-Date -f 'yyyyMMdd')" mkdir $dst Get-ChildItem $src -File | Where {$_.LastWriteTime -gt (Get-Date).Date} | Copy-Item $dst