Skip to main content
Version: v6.5.0

Retrieve file information

Command Description

Get detailed information about SharePoint files

Command Prototype

objRet = SharePoint.FileInfo(spCtx ,strRelPath)

Command parameter

parameterrequiredtypeDefault valuedescribe
spCtxTrueexpressionspCtxObjects returned by connecting to a SharePoint server
strRelPathTruestring""SharePoint relative path

Return result

ObjRet, Assign the result of running the command to this variable.

Run instance

/*********************************获取文件信息**************************************
命令原型:
objRet = SharePoint.FileInfo(spCtx ,strRelPath)
入参:
spCtx--SharePoint对象.注:连接SharePoint服务器返回的对象
strRelPath--路径.注:SharePoint相对路径
出参:
objRet--函数调用的输出保存到的变量.
注意事项:

********************************************************************************/
Dim objRet = ""
objRet = SharePoint.FileInfo(spCtx ,"")
TracePrint(objRet)