Missing files in Mapped Drive

%3CLINGO-SUB%20id%3D%22lingo-sub-2296855%22%20slang%3D%22en-US%22%3EMissing%20files%20in%20Mapped%20Drive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2296855%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20have%20successfully%20mapped%20SharePoint%20to%20a%20driver%20letter%20in%20Windows%20Explorer%20(Win%2010)%20but%20I%20have%20an%20issue%20in%20that%20some%20files%20don't%20seem%20to%20be%20there.%3C%2FP%3E%3CP%3EI%20have%20a%20little%20batch%20file%20that%20should%20produce%20a%20list%20of%20all%20of%20my%20files%20so%20I%20can%20do%20an%20analysis%20in%20Excel%3C%2FP%3E%3CP%3E%40Echo%20off%3C%2FP%3E%3CP%3ESet%20OutFile%3D%25~dp0%25~n0-files.csv%3C%2FP%3E%3CP%3EDel%20%25OutFile%25%3CBR%20%2F%3Etype%20nul%20%26gt%3B%20%25OutFile%25%3C%2FP%3E%3CP%3EFOR%20%2Ff%20%22tokens%3D*%22%20%25%25I%20in%20('dir%20S%3A%5C*.*%20%2Fs%20%2Fb%20%2Fon')%20DO%20echo%20%22%25%25~pI%22%2C%22%25%25~nI%25%25~xI%22%2C%25%25~aI%20%26gt%3B%26gt%3B%20%25OutFile%25%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%20the%20results%20of%20this%20script%20is%20incomplete.%20It%20shows%20a%20large%20number%20of%20files%20but%20not%20all%20of%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20aware%20that%20some%20files%20and%20directories%20may%20have%20the%20S%20or%20H%20attribute%20set%20but%20still%20be%20visible%20from%20the%20web%20page%2C%20I%20have%20checked%20and%20that%20is%20not%20the%20case%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20a%20suggestions%20as%20to%20why%20the%20list%20may%20be%20incomplete%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20should%20point%20out%20that%20the%20site%20has%208000%20plus%20files%20on%20it.%3C%2FP%3E%3CP%3EWe%20do%20use%20OneDrive%20but%20Corporate%20IT%20have%20set%20this%20up%20so%20that%20certain%20PC%20locations%20are%20stored%20there%20(documents%2C%20desktop%2C%20etc)%20and%20I%20am%20unable%20to%20get%20it%20to%20also%20sync%20to%20this%20SharePoint%20document%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2296855%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hello,

I have successfully mapped SharePoint to a driver letter in Windows Explorer (Win 10) but I have an issue in that some files don't seem to be there.

I have a little batch file that should produce a list of all of my files so I can do an analysis in Excel

@Echo off

Set OutFile=%~dp0%~n0-files.csv

Del %OutFile%
type nul > %OutFile%

FOR /f "tokens=*" %%I in ('dir S:\*.* /s /b /on') DO echo "%%~pI","%%~nI%%~xI",%%~aI >> %OutFile%

 

Unfortunately the results of this script is incomplete. It shows a large number of files but not all of them.

 

I am aware that some files and directories may have the S or H attribute set but still be visible from the web page, I have checked and that is not the case for me.

 

Does anyone have a suggestions as to why the list may be incomplete?

 

I should point out that the site has 8000 plus files on it.

We do use OneDrive but Corporate IT have set this up so that certain PC locations are stored there (documents, desktop, etc) and I am unable to get it to also sync to this SharePoint document library.

 

Thank You

0 Replies