Upload files
Command Description
Upload local files to SharePoint
Command Prototype
SharePoint.UploadFile(spCtx ,strRelPath ,strLocPath)
Command parameter
parameter | required | type | Default value | describe |
---|---|---|---|---|
spCtx | True | expression | spCtx | Objects returned by connecting to a SharePoint server |
strRelPath | True | string | "" | Relative paths on SharePoint |
strLocPath | True | path | ''' C:\Users''' | Local file path |
Return result
Run instance
/*********************************上传文件****************************************
命令原型:
SharePoint.UploadFile(spCtx ,strRelPath ,strLocPath)
入参:
spCtx--SharePoint对象.注:连接SharePoint服务器返回的对象
strRelPath--路径.注:SharePoint上的相对路径
strLocPath--本地文件路径.注:本地文件路径
出参:
无
注意事项:
无
********************************************************************************/
SharePoint.UploadFile(spCtx ,"" ,'''C:\Users''')