Sunday, May 15, 2011

Performing an operation in each subdirectory of a directory tree from batch - The Old New Thing - Site Home - MSDN Blogs

Performing an operation in each subdirectory of a directory tree from batch - The Old New Thing - Site Home - MSDN Blogs: "To execute a command in each subdirectory of a directory tree from a batch file, you can adapt the following:

for /f 'delims=' %%i in ('dir /ad/s/b') do echo %%i
(If you want to play with this command from the command prompt, then undouble the percent signs.)"

No comments:

Post a Comment