hi
i have small problem
i have a folder filled with folders and just folders
so doing DIR /B > list.txt is no biggie
but since it lists folders, how can I add custom info/text
for each folder name
for example if output is:
folder1
folder2
folder3
--------
and I want to add .png IN OUTPUT file (.txt), so it would be listed as
folder1.png
folder2.png
i followed few loop examples from google
even tried with adding custom variable and then echo dir to .txt with variable
but nothing happens
any help ?
dir and output binding info
Moderator: DosItHelp
Re: dir and output binding info
Code: Select all
FOR /D %%G IN (*) DO echo %%G.png