for few days i am trying to write a batch script which can copy a single specific file to all folder and sub-folder in every available drive (C:, D:, E: etc....) in computer.
I am using tree
command to revile the list of folder and sub-folder on target drive. then I used for loop + tree command to achieve my goal.
here what i try to do
set a="tree"
for %%g in (' %a% ' ) do (
echo %%g
)
for now i just print the output of tree
command using for loop.