Advertisement
I am having a Site Collection, in that am having two
document library’s, once library having files i want to copy the same files to
move the another library.
Using the below power shell I implemented this.
Add-PsSnapin Microsoft.SharePoint.PowerShell
#Refereing the SiteCollection URL
$web =
"http://dotnetsharepoint:1234/sites/sharepoint/"
#Refereing the Source DocumentLibray Having Files
$sourLibrary = (Get-SPWeb
$web).Folders["SourceLibraryName"]
#Refereing the Destination of DocumentLibray to place Files
$destLibrary = (Get-SPWeb
$web).Folders["DestinationLibraryName"]
$destFiles = $destLibrary.Files
foreach ($file in $sourLibrary.Files)
{
$currentFile =
$file.OpenBinary()
$destURL =
$destFiles.Folder.Url + "/" + $file.Name
$destFiles.Add($destURL, $currentFile, $true)
}
0C20B76F03
ReplyDeletekiralık hacker
hacker arıyorum
belek
kadriye
serik
817E0E26
ReplyDeleteerzincan esçort
esçort antep
esçort denizli
saray esçort
bozüyük esçort
esçort bayan kırklareli
esçort bayan bayburt
yüreğir esçort
anadolu yakası anal esçort