|I would like to list all .txt files or any given extention in a specified directory in flat format.|
dir *.txt /b
the output would look something like:
then I would like to take the filenames and store them as variables.
Next the user would be presented with choices using set command so he can review files.
the script would promt for input
please select a file to compare:
the user selects 1 and the filename gets stored in a variable. The user then selects another number and it also gets stored into a variable.
What I am trying to do is automate a way to compare 2 files.
The user selects what 2 files he wants to compare, then the compare %variable of first file% %variable of second file% > Compare.txt
for %%f in (?) do set filename=%%f