How to list all files and directories in Windows XP drive and save it to a file

Friday, 10th December 2010

Yesterday I had this thing, by accident because of some misconfiguration of the domain controller here in the university. I can read some files and folders which were belonging to students and teachers here in the university. We had some great fun with my good old friend David. In checking up some trashy stuff. It was rather interesting that one of the directory listings actually contained all the teachers computer usernames with it, therefore I needed a quick way to make all the files listing stored in a file in order to be able to later have this usernames listing stored in an MySQL or some other kind of database, after consulting few websites I came to the command to list all files and directories in the mapped sharing.

We first used the net use //workgroup/ J: to map the sharing in the workgroup and later we used the dir command as shown below to list all files and directories and store the data in a file.
So here is how you can also come with all your files and directories in your Windows drive stored in a file:

dir J: /s > c:somepathj_file.txt

Now if the files and directory is not too long you will have everything stored in j_file.txt in a couple of minutes time, however in our case the directory listing was huge so we had to wait for an hour and still the file was filling in 🙂

Share this on:

Download PDFDownload PDF

Tags: , , ,

One Response to “How to list all files and directories in Windows XP drive and save it to a file”

  1. PC drivers Online says:
    Internet Explorer 8.0 (Compatibility Mode) Internet Explorer 8.0 (Compatibility Mode) Windows Vista Windows Vista
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; MDDC; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729; msn OptimizedIE8;ENUS)

    Great post, I’m Totally agree with you

    View CommentView Comment

Leave a Reply

CommentLuv badge