Skip to content

keithzeng/findandreplace

Repository files navigation

##I. Use of batch file, _findandreplace.bat

  1. Usage:
    a. call :untokenize %INPUT% %OUTPUT% %PROP%
  2. 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

  1. Usage:
    a. Set cache = createKeyVal(prop_path)
    b. Call untokenize(file,cache)
  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published