The Advanced Version does everything that the basic version does, except that it acts only on HTML files and not on PHP files, and in addition allows acting on multiple files (in multiple folders) in a single operation, with no limit on the number of files.
Initially the program starts up with the two radio boxes and associated buttons as at left. When the 'Single file' button is enabled then the program functions in exactly the same way as the basic version.
To specify the parameters for a multiple file operation click on the 'Set operation parameters' button to open the window as shown below.
Check the extensions of the HTML files you wish to process (normally just htm and html).
If 'Include all subfolders recursively' is checked then the program will act on all files in the specified folder, in all subfolders of that folder, in all subfolders of those folders and so on. If not checked then it acts only on files in the specified folder.
If 'Make backups of files' is checked then a copy will be made of any file into which a keywords meta tag is inserted. The name of the backup file will have 'bak' in the file name just before the file extension.
If you are performing an operation on a set of files you may wish to stop and start again (e.g., if you wish to edit some files). In order not to repeat the operation on files which have already been processed it is possible to tell the program to insert a 'Done' meta tag along with the keywords meta tag. The former looks like this: <meta name="KWGA done" content="2008-11-24">
where the date inserted is today's date (according to the system clock).
This prepares the way for skipping files which have already been acted on today, which can be done by checking 'Skip files with a Done tag less than 1 day old'. If you are taking two days to do this then you can skip the files which were processed yesterday by checking 'Skip files with a Done tag less than 2 days old'.
The program may sometimes encounter a file which has more end-font tags than start-font tags (which does not occur if the HTML is correct). This is not a fatal error, but if you wish to be notified of this then check the relevant checkbox.
This software will process files which have (on PCs) the non-standard Unix/Linux line endings in text files, but this is not recommended because processing may be quite slow, the more so the larger the file is. However, if it is necessary to work with such non-standard files then it can be useful to disable the dialog box which displays a warning when such a file is encountered. This can be done by unchecking the 'Display a dialog box if a Unix/Linux file is encountered'. In this case such a file will cause a warning to be displayed at the bottom of the main screen, but no dialog box will appear. Processing may take some time, and the only sign of activity will be the change in the display of the number of words found.
Checking or unchecking the checkboxes allows you to do the following: • Insert the keywords meta tag or not. • Insert a 'Done' meta tag or not. • Stop the operation (after either or both of the requested insertions, if any, have been done).
There are eight possibilities, but the main ones are: • To insert both meta tags and continue to the next file check the first and second boxes only (as above) and click on 'Continue'. • To insert neither meta tag but continue to the next file uncheck all boxes. • To insert the meta tags and then stop, check all boxes. • To stop without inserting any meta tags, uncheck all boxes.
If 'Inspect keywords meta tag' is not checked then meta tags will be generated and inserted in all the files automatically (except in anomalous cases, such as a file lacking a ... section). This is an easy way to insert meta tags quickly in hundreds or thousands of HTML files. The disadvantage is that you can't edit the generated meta tags before insertion, so many will contain words which occur frequently in a file, especially verbs and adjectives, but which are not quite appropriate as keywords. (If you have chosen to log operations then you can review the generated meta tags in the report window after the process is completed, and make any desired changes manually.) If you feel uneasy about performing an operation on a large number of files at once then make a backup copy of the folder and all its subfolders before letting the program loose on it.
If the program has been told to make backup copies (though this is not really needed), and if there are a lot of them in a folder, then they can be removed easily by using the Windows 'Find | Files or Folders' utility. Select the folder and search on *bak.*. After the found files are displayed, select them all (within the Find window) and delete them.