Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another Directory Tree Utility
#1
Find attached the Stree directory tree display utilty:

Notes of Stree.doc documentation:

Code: (Select All)
Stree Documentation:

Stree v2.0a: QB64 Directory display utility;

  Version v2.0a includes custom command$ function.

Stree displays directories, their date\time, and their attributes.

Usage:

  Stree [d:\path\][/ahos][/bcdefnrtuvwxyz][/123]

Where:

  [d:\path\] specifies the path for directories to display. If d: is not
  specified then the default drive is used.

  Filename can be prepended with network path specified \\serv1\c\

  Stree can only accept ? and * characters in the trailing path, for
  example:

    Stree \DOS\Temp?

Display file attributes:

  /a  display directories with archive attribute

      Only lists directories with the archive bit set.

  /h  display directories with hidden attribute

      Only lists directories with the hidden bit set.

  /o  display directories with read-only attribute

      Only lists directories with the read-only bit set.

  /s  display directories with system attribute

      Only lists directories with the system bit set.

Display switches:

  /b  append trailing slash

      Appends trailing slash for cohesive output. This is the opposite
      function to the /x switch. If the output filename has a trailing
      slash then one more will not be appended.

  /c  continuous display

      Suppresses more prompts. Allows streaming to be uninterrupted.

  /e  display extended directory date and time

      Displays the date\time and attributes of the directories.

  /f  display short filenames

      Display the directories without the leading full path. Use with /v.

  /nxxx  recurse levels override

      Specifies the number of subdirectories to recurse into. Default of the
      starting directory is nested one level deep. Note that Whereis counts
      from the beginning directory as one recurse, whereas Stree counts from
      the second one. So specifying /n1 for Whereis is the same as specifying
      /n2 for Stree.

  /r  recurse directories

      Searches all subdirectories for the specified files to copy, recursing
      from the source directory specified.

  /u  strip leading drive

      Removes the leading drive letter and colon from output.

  /v  display 8.3 directory names

      Over-rides windows dos 7.10 long filenames and lists directories in
      their 8.3 stored format. Use with /f.

  /w  display directories in wide list

      Displays 5 directories per line.

      Overrides extended display switch /e and short filename
      switches /v, /f.

  /w1 prepend slash

      Prepends slash for wide display when /u used to remove drive letter.

  /x  truncate trailing slash

      Removes trailing slash for cohesive output.

  /y  display files in lowercase

      Displays directories in lowercase unless windows is present, then the
      case insensitive directory names are displayed.

  /z  suppress errors

      Stops errors from being displayed.

Directory date\time ranges:

  /dmm/dd/yyyy-mm/dd/yyyy

    displays files in any range of dates. the date range must be specified
    in standard system date format, for example, /d01/01/1980-12/01/1980

  /thh:mm:ss-hh:mm:ss

    displays files in any range of times. the time range must be specified
    in standard system time format, for example, /t12:00:00-15:00:00

  /1  creation date\time

      Displays the directory creation date\time when used with /e

  /2  last access date

      Displays the directory last access date\time when used with /e

  /3  last modified date\time

    Displays the directory last modified date\time when used with /e

  If any combination of /1, /2, and /3 are used, each display is
  separated with a white backslash, with creation date\time first,
  last access date\time second, and last modified date\time third.

Examples:

  List the directories in \windows\system32 beginning with the letter 'w'.

    Stree \windows\system32\w*

-end-

LOC: 1,254


Attached Files
.zip   STREEX2.ZIP (Size: 14.03 KB / Downloads: 14)
Reply




Users browsing this thread: 1 Guest(s)