将网络文件复制到sharepoint的文档库 [英] Copy the Network files to the document library of sharepoint

查看:83
本文介绍了将网络文件复制到sharepoint的文档库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我在网络位置有一些文件需要覆盖到SharePoint文档库,这应该在特定时间每天发生。



我是SharePoint新手,所以请尽可能详细说明步骤。



谢谢高级

解决方案

您可以使用PowerShell脚本并使用Windows Scheduler安排它在每天的特定时间运行。



人们会主张使用SP计时器作业,但是考虑到Microsoft转移到Office 365而无法运行完全信任解决方案,拥有好的旧计划作业会使云准备就绪。



这个脚本应该有帮助:



 [System.Reflection.Assembly] :: LoadWithPartialName(Microsoft.SharePoint )
if((Get-PSSnapin | Where {


_。Name -eqMicrosoft.SharePoint.PowerShell})-eq


< blockquote> null){
Add-PSSnapin Microsoft.SharePoint.PowerShell;
}

#Site集合,你要上传文件


Hi Friends,

I have a few files on a network location which i to need overwrite to a SharePoint Document Library, this should happen daily on a specific time.

I am new to SharePoint, so please provide me the details steps if possible.

Thanks in Advance

解决方案

You can use a PowerShell script and schedule it using Windows Scheduler to run at a specific time every day.

People would argue to use SP Timer Jobs, but having the good old Scheduled jobs makes it cloud ready considering Microsoft shift to Office 365 where you can not run a Full Trust solution.

This script should help:

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
if((Get-PSSnapin | Where {


_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq


null) { Add-PSSnapin Microsoft.SharePoint.PowerShell; } #Site Collection where you want to upload files


这篇关于将网络文件复制到sharepoint的文档库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆