I am trying to write a batch script were i will prompt for a 'X' and 'Y' value. I then need to generate files from a single file.
I need to have something like this:-
filename_X01_Y01.xxx
filename_X01_Y02.xxx
filename_X01_Y03.xxx
filename_X01_Y04.xxx
filename_X02_Y01.xxx
filename_X02_Y02.xxx
filename_X02_Y03.xxx
filename_X02_Y04.xxx
The idea is that i need to create all files with all variations of X and Y so if you have value X = 20 and value Y = 20 this would generate 420 files.
At the moment I am generating the names in excel and then pasting them into the batch file. This would then add 420 commands and would be static in the number of files. I would like to have the option to generate a variable amount based on X and Y value.
Any help would be appreciated.


