|I am trying run a loop X amount of times, and prompt for a string each time and store it in a separate variable for each prompt. Here is what I have:|
SET /P Number=
set /A Count+=1
IF !Count! gtr !Number! GOTO :eof
SET /P File!Count!=Name of File!Count!?-
It loops through and asks me for all the file names, but it doesn't store the values in the variables I want(file1, file2, etc.) I suspect that you can't set a variable name that contains a variable which leads me the real problem: I don't have a clue how to set a "variable" number of variables.