Sunday, January 18, 2009

copy content of a directory from and to

[] to copy the 'New.Directory' directory from the R: drive to the 'r:\temp' directory

PS> copy-item -path r:\new.directory -destination r:\temp

[] to copy all of the contents of a folder and overwrite the empty folder (if above is done)

PS> copy-item -path r:\new.directory -destination r:\temp -recurse -force -passthru

No comments:

Post a Comment