Friday, March 27, 2020

powershell cmdlet Copy-Item overwrites the existing files


Tested successfully
In Powershell, the cmdlet
Copy-Item overwrites the existing files

Copy-Item "C:\test\test.conf" -Destination "C:\conf\test.conf"

The above command will overwrite C:\conf\test.conf file with C:\test\test.conf

No comments:

Post a Comment