Welcome!

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

SignUp Now!

"Access denied" messages from DO

May
12,845
164
These two commands produce identical STDOUT (here, 26 fully qualified file names).
Code:
ffind /m /s c:\windows\system32\*.log
do f in /d"c:\windows\system32" /s *.log ( echo %@full[%f] )

FFIND gives no error messages. DO gives 20 2-line "Access denied" messages.

Can the behavior be changed?
 
OK, I think I know what's happening. DO /S tries to make each directory the current directory. That fails for directories with "traverse / execute" denied. FFIND only looks at the contents (which is OK). I still don't like all the error messages.
What behavior?
All the "access denied" error messages.
 

Similar threads

Back
Top