Page 1 of 1

how to "xcopy /D" in Powershell

Posted: 2021-Jul-25, 11:13 am
by MigrationUser
19 Nov 2009 13:48


is there a command for the PowerShell which makes the same as the "xcopy /D" in the cmd?




#19 Nov 2009 20:51
Simon Sheppard

It's possible to write a powershell filter to copy files based on date, but really Robocopy is almost always the fastest way to copy so thats probably your best option.

You can work with robocopy in powershell just the same as you do in cmd, but give the full path to robocopy


Code: Select all

PS C:> C:\Program Files\Resource Kit\Robocopy.exe source_folder destination_folder