how to "xcopy /D" in Powershell

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

how to "xcopy /D" in Powershell

Post by MigrationUser »

19 Nov 2009 13:48
kugman


Hello,

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

thanks

Markus

----------------------------

#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

e.g.

Code: Select all

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