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
Post a Comment