"Access denied" messages from DO

May 20, 2008
10,573
78
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
11,910
133
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
10,573
78
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.