I have a question here.. on powershell Script
Do anyone help me in providing a powershell command line to copy and replace the contents between the two folders with same names?
1 Comment
[ + ] Show comment
Answers (1)
Please log in to answer
Posted by:
rileyz
4 years ago
You don't have to do everything in PowerShell, there are betters tools out there. Robocopy is baked into Windows btw.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
Take care when using robocopy, it can delete files as well!
Maybe
Copy-Item -path $source -Destination $destination -recurse -force - egiberne 4 years ago