DIR /A:Q"owner"

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 7, 2008
121
0
#1
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
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