"Access denied" messages from DO

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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
10,291
90
#2
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?
 
#3
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.
All the "access denied" error messages.