|I'm trying to create a batch file to simplify a process in which a filename must be used in a command line tool.|
Currently, I'm just using what's below to display available files and have the user manually type them out:
DIR /W /B *.ext
SET /P filename=[Which file do you want to use?]
To greatly simplify this process, I would like to store filenames in a text file (DIR /W /B *ext > dir.txt) and have the user simply input "1", "2", "3", etc, to pull the string from the corresponding line number in the text file into a variable.
Is this even possible?
OR, is there a way to do this without storing anything in a file?