Jump to content

Walk a directory/Recursively: Difference between revisions

reread the requirements. Now it ECHOs instead of ATTRIBs
(reread the requirements. Now it ECHOs instead of ATTRIBs)
Line 238:
<lang dos>dir /a-d %1</lang>
 
If you wanted to apply some command to each item in a directory tree, then use <code>/R</code> on a <code>FOR</code>. For example, apply the ATTRIBECHO command to every DLL file in C:\Windows\System32:
 
<lang dos>FOR /R C:\Windows\System32 %F IN (*.DLL) DO ATTRIBECHO "%F"</lang>
 
=={{header|E}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.