##I. Use of batch file, _findandreplace.bat
- Usage:
a. call :untokenize %INPUT% %OUTPUT% %PROP% - Parameters:
a. input file that you want to update
b. output file name that you desired
c. tokens.properties with "=" as delimiter
##II. Use of VBScript file, findandreplace.vbs
- Usage:
a. Set cache = createKeyVal(prop_path)
b. Call untokenize(file,cache) - Parameters:
a. prop_path = where you have you tokens properties
b. cache = the dictionary object created from prop_path
c. file = file you want to untokenize
##Notes
Both scripts do following:
1. loop through all the lines in the input file
2. immediately look through all the key value pair in the tokens properties
3. replace the all the keys found on the line with their respective value
4. save the output to the output file
but VBS file provides better handling of the XML file then batch file does.
Batch script doesn't work too well with all the ^ < % symbols.