Question About DIR Command Options

Discussion in 'Scripting' started by oneextraid, Nov 26, 2020.

  1. oneextraid

    oneextraid MDL Member

    Jul 29, 2009
    181
    19
    10
    I have an example of a Dir command that I use and am trying to understand it.
    dir /b /s DIRECTORY\*.*

    The results are what I want but I cannot find any documentation of the DIRECTORY\*.* that is in the command.
    IE Folder and sub-folders only.

    Any explanation or a link to explanation would be greatly appreciated.
    Thanks
     
  2. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,311
    1,938
    120
    Directory is not a command this is the drive letter or folder location
    for example type dir /b /s D:\*.* , it will list all files and folders in D drive
    Try also dir /p /w D:
    :)
     
  3. oneextraid

    oneextraid MDL Member

    Jul 29, 2009
    181
    19
    10
    Thanks.