The help says that if there is no drive letter specified after for /r, then the system will default to the current drive letter.
So, for the LZ's
for /r %%a in (c: d: e: f:) do tree /f > 1.txt and
for /r %%a in (c: d: e: f:) do attrib -h *.info
Both will only execute under the current drive letter and will not execute the desired operations on the 4 drives.
So, for the LZ's
for /r %%a in (c: d: e: f:) do tree /f > 1.txt and
for /r %%a in (c: d: e: f:) do attrib -h *.info
Both will only execute under the current drive letter and will not execute the desired operations on the 4 drives.
