"Access denied" messages from DO

May 20, 2008
12,167
133
Syracuse, NY, USA
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?
 

rconn

Administrator
Staff member
May 14, 2008
12,556
167
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?

What behavior?
 
May 20, 2008
12,167
133
Syracuse, NY, USA
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