PS for moving files with the word ARCHIVE in there naming of a specific path, to a spec path?
hello,
i'm trying figure out how ps script have in order move files word archive in there naming of specific path, network path?
any ideas? thx
hi,
try this:
$sourcelocation = "p:\test" $destlocation = "\\g1\test2" get-childitem $sourcelocation *archive* | move-item -destination $destlocation
Windows Server > Windows PowerShell
Comments
Post a Comment