; Note: comment lines in .INI files always start with a semicolon [Template] Description=This template can be used to build a job that will do search & replace in text files. [Variables] ; Key values that have their name enclosed in % signs will be used for ; template wizard questionnaire and substitution variables ; such key values should consist of 2 comma separated parts: ; 1. Field Edit Style (EDIT, YES/NO, FILE BROWSE, ; DIR BROWSE, PROCESS BROWSE, ; FTP BROWSE, MAIL PROFILE LIST, ; REMOTE FILE BROWSE, REMOTE DIR BROWSE, ; REMOTE AGENT LIST, DB PROFILE LIST) ; 2. Prompt ; ; Example: %VAR%=EDIT,What is the name of the service that you want to monitor? ; ; Key values that don't have their name enclosed in % signs will be used for ; job properties (See online help on "Job property names for use with JDL command" ; topic for more details). ; ; Example: DAY_NUMBER=1 %DIR%=DIR BROWSE,Specify directory where you what to start search and replace operation: %FILE_MASK%=EDIT,Specify file mask for the files to be searched: %SEARCH%=EDIT,Specify text that you want to find and replace: %REPLACE%=EDIT,Specify text that you want to use as a replacement: %SEARCH_SUBDIR%=YES/NO,Do you want to search and replace in subdirectories (Y/N)? JOB_TYPE=S LOG=Y ASYNC=N SKIP=N SCHEDULE_TYPE=X DESCRIPTION=This job does search and replace in files specified by a file mask or full name. ; Notes: The script bellow can include substitution variables. ; Substitution variables must be specified in %VAR% format ; where VAR is the variable name. ; ; Everything after the next line will be used for the template script. ;======================================================================================== [Body] Dim( CountChanges, number ) FileReplaceEx( "%DIR%", "%FILE_MASK%", "%SEARCH%", "%REPLACE%", %SEARCH_SUBDIR%, CountChanges )