Good Windows Command wanted for directory entries Help Gurus please


jimbo45

Well-known member
Power User
VIP
Local time
4:05 PM
Posts
2,252
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
I'm looking for a good Windows command to replicate as near as possible the linux Tree command tree -QDuhCip /dir
output : e.g
Screenshot_20220722_114147.png
Owner, size, date last accessed, time, file name

trying to do a mega 20TB "JBOD" disk clean up on windows but directory structures are nightmares. I can't move the disk from the windows machine nor access it remotely otherwise problem is simple !!!!. as above.

Then I can get into spreadsheet, sort by last used, owner etc and get rid of stuff not used for a specific time and users no longer around.

Any ideas - Gurus please.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

iko22

Well-known member
Member
VIP
Local time
4:05 PM
Posts
642
Location
South West England
OS
Windows 10
@jimbo45
I am surprised this is a question that you did not already know about, or am I missing something obvious?!
You can use the cmd Dir command, with attributes to obtain Owner, size, date last accessed, time, file name.
dir /q /ta
To search a particular drive/path combination:
dir <drive:><path> /q /ta
Or, if you want to include subdirectories:
dir <drive:><path> /q /ta /s
you can pause the output with
dir <drive:><path> /q /ta /s /p
or
redirect the output to a text file:
dir <drive:><path> /q /ta /s > diskJBOD.txt
 

My Computer

System One

  • OS
    Windows 10
    CPU
    TBA
    Motherboard
    TBA
Top Bottom