PowerShell Copy File From One Location to Another
Here is a powershell script that copy files from one location to another in same computer/machine.
$CurrentLocationandFileName = "C:\Users\Administrator\Desktop\New.txt"
$DestinationLocation = "D:\NewFolder"
copy $CurrentLocationandFileName -Destination $DestinationLocation
$CurrentLocationandFileName = "C:\Users\Administrator\Desktop\New.txt"
$DestinationLocation = "D:\NewFolder"
copy $CurrentLocationandFileName -Destination $DestinationLocation
Comments
Post a Comment