DIr Vexation / Alternates?


  1. Posts : 281
    windows 10
       #1

    DIr Vexation / Alternates?


    I want output all of the files in my document tree by Date Created, and have them format into a tight list in ascending chronological order The dir B switch gives me a nice tight list but I have not been able to figure out how to put it in oldest to newest order.

    Examples for desired output of files drawn from multiple folders.
    04/25/2020 10:16 PM 38,815 Uku.Baritone.Hand.Position
    04/26/2020 11:16 PM 8,815 Uku.Soprano.Turnings
    04/26/2020 09:45 PM 1,012 Pineapple Juice options
    04/28/2020 08:00 Letter to Golden Music

    Maybe I should be using a different toll to get the above structure?

    Any thoughts will be greatly appreciated.

    Oh. I need solutions that are simple and quick I just realized I have some on this topic-somewhere.
      My Computer


  2. Posts : 11,645
    Windows 10 Home x64 Version 21H2 Build 19044.1776
       #2

    Mike,

    You can see the Dir switches by entering this in a command prompt
    Code:
    dir /?
    See also
    Dir - MSDocs
    Dir - SS64

    From your explanation, I think you need these switches
    /OD {sort order, oldest first}
    /TC {makes date created the date-time used for the command}

    Denis
      My Computer


  3. Posts : 281
    windows 10
    Thread Starter
       #3

    Command > Documents>dir /od/tc


    Thanks.

    I never thought to connect the two commands.

    Seems to work quite well for one Directory.

    Any thoughts for extending into other folders in one pass, ones lower than the current Directory?


    Thanks for any additional thoughts.
      My Computer


  4. Posts : 11,645
    Windows 10 Home x64 Version 21H2 Build 19044.1776
       #4

    mikeincousa said:
    Any thoughts for extending into other folders in one pass, ones lower than the current Directory?
    Mike,

    You can see the Dir switches by entering this in a command prompt
    Code:
    dir /?
    See also
    Dir - MSDocs
    Dir - SS64

    In response to your additional question, I think you need this additional switch
    /S {include subfolders}

    You might also wish to study the information linked to in
    my consolidated links Useful study materials for batch file scripting n PowerShell - post #8 - TenForums

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:39.
Find Us




Windows 10 Forums