Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done DIR /A:Q"owner"

Jun
121
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
 
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
 
Back
Top