I’m trying to make a batch file to help generate a large amount of files that are similar but differ in name as well as called variables inside the files
the file would contain a variable-name that is retrieved from a list in a separate text file with around 1000 names, and call to a variable-function from another text file with around 40 different functions – this would need to create one file for all 40 functions for each name about 1kb each. As this is tens of thousands of files it would take a very long time to create manually.
the name of the created files would need to contain the variable-name followed by the called variable-function and then made as a file with a .json extension
for context this is to create an addon for a game and involves a lot of repeated but simple files to define alternate creatures
I am not sure how to do this with a batch file or if it could be done with one. I don’t have much experience using them (but with an example of something(s) similar I can figure it out.
If a batch file wont work, what should I use to accomplish this?
example of the output file below
file name: variablename_variablefuntion.json
{
"target": "variable-name",
"features": ["variable-function"],
"aspects": ["variable-function"],
"forms": [
{
"name": "variable-name",
"labels": ["variable-function"],
"aspects": ["variable-function"]
}
]
}