The following PowerShell script works if there are no resources there.
Copy-Item $src_dir $dst_dir$agent_folder -recurse
But if there are resources, he will say:
+ Copy-Item <<<< $src_dir $dst_dir$agent_folder -recurse + CategoryInfo : ResourceExists: (C:\Users\Pac\Desktop\Agents\Agent0\lib:S tring) [Copy-Item], IOException + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.CopyItemComm and
What do I need to add to the command so that it accurately copies files?
powershell
sivabudh Nov 24 '09 at 4:43 2009-11-24 04:43
source share