Command Prompt for Share Drive Inventory?

jmcalla

New Member
Hello,

I have been asked to perform an inventory of our share drive at work. They would like to have a list of all the folders on the share. Is there a command line that I can use and then copy and paste into word or excel?

As of right now they are only asking for the list of the top levels folders but I can see them adding requirements on to this request so if there are any other commands that you can provide that show even more information that would be very helpful.

Thank you!
Joe
 
This will make a list of all the files (Not folders), but you remove the filename to find the folder..
Change C:\MySource to the Root Folder you want to get all files from
Change C:\OutputList.csv to the the output file (Will be created and overwrite each time)
/L means make a list
/E Everything
/G Encrypted files
/H Hidden Files

xcopy C:\MySource c:\ /L /E /G /H>C:\OutputList.csv
 
Last edited:
Back
Top