I made a menu in batch that display all the .txt file in folder and assign each file a number. Based on this tutorial: Batch Script Programming -- How to allow a user to select a file by number from a list of files in a folder? - It works very well, but I want to make it possible to choose more then 1 file. Example, the user can choose for example 1,2,4 and in a new variable I will get all the files names of the first file that was listed, the second, and the fourth.
In addition the number of .txt file is getting changed so I don't know how many .txt files will be in the folder and I want to let the user choose as many as file he wants- 1 file or more. I need the files in 1 variable because I want after the user choose to use a 3rd part app that need all files names in 1 line so I want to write something like:
"Do this command with %all_files_from_batch_menu%"
I hope it was clear... Thanks!
Here is an example Lets say I have in the folder 5 files a.txt b.txt c.txt d.txt e.txt - I want the menu to show them and assign numbers to each file and if the user will choose 1,2,4 it will write him you choose a.txt b.txt e.txt