For example, I want to search for a file
where /r C:\ "myfile.txt"
and then make the output of that command which would be the file path to "myfile.txt" a variable I choose,
So then the path to that file is now a variable so I could do echo %variable% and it would print the path?
Best Answer
This
... will list how
for
works, look for the lineand read about it.
Now note that %variable is LOCAL to
for
so you need to have e.g.set F=%variable
withincommand
will print
To do: Check-it-out