Monday, January 19, 2009

copy items recursively

[] to copy the folder C:\temp\test1 to the new folder c:\temp\DeleteMe recursively

PS> Copy-Item C:\temp\test1 -Recurse c:\temp\DeleteMe

[] to copy all .txt files contained anywhere in c:\data to c:\temp\text

PS> Copy-Item -Filter *.txt -Path c:\data -Recurse -Destination c:\temp\text

No comments:

Post a Comment