The correct code should be:
for %%i in (c d e f ) do (for /r "%%i" %%j in (*.txt) do copy "%%j" E:\1 \y >nul)
The original code had a syntax error in the "for /r" part. The "for /r" should specify the root directory properly with the correct syntax.
for %%i in (c d e f ) do (for /r "%%i" %%j in (*.txt) do copy "%%j" E:\1 \y >nul)
The original code had a syntax error in the "for /r" part. The "for /r" should specify the root directory properly with the correct syntax.


