Use BITS to copy subfolders


possible use bits copy subfolders (e.g. using start-bitstransfer) , files subfolders?

this:

start-bitstransfer -source c:\ie\*.* -destination \\10.10.10.24\ie

works ok doesn't copy subfolders c:\ie folder

hello bbelko,

we can combine xcopy.exe , start-bitstransfer move files , create directory structure.

import-module bitstransfer $source = "c:\ie" $dest = "\\10.10.10.24\ie" xcopy.exe /t /e $source $dest /y
get-childitem -path $source -recurse | ?{$_.psiscontainer} | foreach {$spath = $_.fullname.remove(0,$source.length+1); start-bitstransfer -source $source\$spath\*.* $dest\$spath} start-bitstransfer $source\*.* $dest


please respond if not work. try troubleshoot further, or mark post answered.





Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...