I have a plain text file which I need to, on a daily basis, convert into several additional versions. The document(s) contains setting for systems and I need to have three versions, all derived from the master.
Ideally I need an automated process (macro?) run each morning at 3AM and generate the other versions.
I have a folder (Settings) in which the .txt file exists (settings.txt). I need the following changes to be made to 'auto-generate' two additional variants (settings2.txt and settings3.txt) from it. So, the folder will at all times have a settings, settins2 and setting3 file within it, with settings2 and settings3 re-generated each morning from the settings file that exists when the macro runs.
The changes, to keep it simply, are to take the settings.txt file and make several replacements. For example, replace all instance of 'Apple' with 'Pear', 'Dog' with 'Cat' and 'House' with 'Car'. The different file versions are used by different systems that share settings but need to be in a different format, hence the need to make changes.
Probably more information than is needed but in case the replacements above confuse. A real example is that in settings.txt there are MANY lines that read 'feed=2,5,F,' and they need to be switched out in settings2.txt to be 'feed=3,2,G,' and in settings3.txt to 'feed=1,2,F,'. Hope that helps.
Is there a system (maybe even inherent within Window 7?) that will auto-generate these text files for me or a 3rd party product etc?