:: This batch file is used to write the salt value into the g2.ini file and then delete the salt file.
:: %1 G2 repository folder path
:: %2 G2 templates folder path
:: %3 Salt file path
:: %4 Salt

::Replace the placeholder with corresponding content.
CSCRIPT %2\replace.vbs %1\g2.ini {Salt} %4

DEL %3

Echo finished.