It works fine, but doesn't work when I try to put the source file on the server.
Powershell -NoL -NoP -C "&{$ts=New-TimeSpan -M 10;"^
"GCI "\\192.168.20.211\\Temp" -Fi '\*.txt'|?{"^
"$_.LastWriteTime -gt ((Get-Date)-$ts)}|"^
%%{CpI $_.FullName 'C:\\Temp2'}}"
I am a error Get-ChildItem : Impossible to find a positional parameter accepting the argument
Do you have any idea how to point to my server ?
Sorry for traduction.