Question about dir (CMD prompt)

pecano

Active Member
Joined
Jan 27, 2015
Messages
87
Reaction score
0
I've got a network drive to work on that has a ton of subfolders and files on it. To search for a particular file I recently found it's quicker to make a txt file out of the dir listing from command prompt, I got the listing using "dir //network/path /s >list.txt". This created a 5MB file last time I used it and it took a few minutes to generate. When I tried today the file was 120KB created almost instantly, and was clearly truncated. I don't understand why?
 
Windows caches the results of the first DIR command for network locations. When you repeat the command, it reports back the saved directories but truncated. I think that this happens both on the server and client side. This is to reduce stress on the server's and client's networks.
 
Top
Sign up to the MyBroadband newsletter
X