We have a sharepoint server that we are looking to script an extraction on a partial site.
The request is that they have a site that that can have multiple sub-folders. The file will then be extracted to a single folder.
I have done some digging and have found the following example that would extract files to a single folder:
XCOPY "\sharepointsvr\Dept\Library\".DOC C:\TMP /S /Y XCOPY "\sharepointsvr\Dept\Library\".DOCX C:\TMP /S /Y or
for /R "\sharepointsvr\Dept\Library\" %i IN (*.DOC) DO xcopy %i C:\TMP /M
I am looking at running this as a scheduled tasks form the server using a command script. The above script would dump the files and subfolders into a single (and that is what they would prefer)
My questions are the following.
Is there a way to tell if a files is checked out from a command prompt?
If so that it could be skipped?
If not is there a better way to achieve this data extraction for 'checked in files'?
thanks for any thoughts..