#1 19 Nov 2009 13:48

kugman
Member
Registered: 19 Nov 2009
Posts: 1

how to "xcopy /D" in Powershell

Hello,

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

thanks

Markus

Offline

#2 19 Nov 2009 20:51

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,039
Website

Re: how to "xcopy /D" in Powershell

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.

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

Offline

Board footer

Powered by FluxBB