I want to add video files to the Asset Library programmatically using powershell and Kindly help me.i tried the below code :
Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$sitecollecURL ="http://sirvr1:123/sites/enggtest"
$videoFolderPath = "C:\Myvideofolder\"
$videoLibFiles = Get-ChildItem $videoFolderPath -Include
*.wmv,*.mp3,*.mp4,*.flv,*.avi -Recurse
Write-Host -ForegroundColor Yellow "starting to add video item to the asset
library " $sitecollecURL
$siteDiscipline = Get-SPSite $sitecollecURL
my idea is to get the different video or audio files kept in the folder and read one by one which matches the extension and upload into the assets library
0 commentaires:
Enregistrer un commentaire