I have a directory for which I want to list all .doc files with ; .
I know the following command command: echos all files:
for /r %%i In (*.doc) DO echo %%i
But now I want to put them all in a variable, add ; between them and I will repeat them all at once.
How can i do this?
set myvar="the list: " for /r %%i In (*.doc) DO <what?> echo %myvar%
windows string-concatenation batch-file
Fortega Jan 08 '10 at 11:00 2010-01-08 11:00
source share