1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DIR /A:Q"owner"

Discussion in 'Suggestions' started by Stephen Howe, Dec 4, 2008.

  1. Stephen Howe

    Joined:
    Jun 7, 2008
    Messages:
    127
    Likes Received:
    0
    Hi

    I am just wondering how practical it would be to do DIR (and PDIR) where only those with the right ownership are visible?

    At the worst I can do

    DIR /Q files | FIND "specific owner"

    It means I get to see log files but only those created by a specific person.
    I suppose because ownership is slow to determine, you would filter this last once all other filtering had been done.

    Cheers

    Stephen Howe
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Stephen Howe wrote:
    | Hi
    |
    | I am just wondering how practical it would be to do DIR (and PDIR)
    | where only those with the right ownership are visible?
    |
    | At the worst I can do
    |
    | DIR /Q files | FIND "specific owner"
    |
    | It means I get to see log files but only those created by a specific
    | person.
    | I suppose because ownership is slow to determine, you would filter
    | this last once all other filtering had been done.

    You might also try:

    for %f in (*) if "%@owner[%f]" EQ "specific owner" ...

    which does not require an additional process.
    --
    Steve
     

Share This Page