Description:
The program <Find_ICAO.exe> was developed in order to locate data which are connected with a selected airport or navaid. This data is hidden in binary *.bgl files in FS9 as well as in FSX . (Some, but not all, of this data can be seen and manipulated with tools like AFCAD 2). Since the simulator programs contain very many of these bgl files (mostly in ..\scenery - subdirectories), it is not easy to find out in which of these hundreds of files specific airport and navaid data are to be found. The search for those files is automated by <Find_ICAO.exe>.  This program needs as input a list of all files you want to be parsed for a selected ICAO code. This list in text-file format must contain in each line the full path and name (and nothing else) of a (bgl) file to be searched for the code. Blank lines or lines with the name of non-existing files in the list file are skipped in the parsing process. The program can be used for parsing FS9 as well as FSX files. After parsing, it creates a text file with the name of the code containing the position(s) of the code searched for and the name(s) and location of the corresponding bgl files (if there are any) in the selected directory.

Installation:
<Find_ICAO.exe> is self-explanatory (see Menu-Option "Info"). It can be unzipped into any directory or subdirectory within Windows, and can be run from there.

As mentioned, the existence of a list file with the path and file names of the files to be parsed, is mandatory. In order to create this list file, you may proceed as follows (this at least works with Windows 2000 and Windows XP):

1. In Windows, switch to the directory where the bgl-files to be checked are located (for instance: C:\programme\Microsoft Games\Flight Simulator 9\scenery\eurw\scenery). Then call the DOS console and switch to the same directory there.

2. Now run the shell script 
		 
		 for /f %i in ('dir /b *.bgl') do @echo %cd%\%i >> XXXX.txt

where XXXX is an arbitrarily selected name (which should suggest the usage of the file), and then leave the DOS console.
As a result of the console action, the list file <XXXX.txt> with the names of the bgl files to be parsed, is created in the selected directory, if no error has occurred. Now run <Find_ICAO.exe> from any directory, with the input of XXXX.txt as selected list file and some ICAO code YYYY. After having finished, the text file <YYYY.txt> will also have been created in the same directory. It displays the locations (if there are any) of the selected ICAO code within the parsed set of bgl files.
(It is also possible proceeding along a similar line to create a list file with the names of files to be parsed , if they are located in different directories.)

Disclaimer:
The program is freeware. The author declines any responsibility for damages which might occur when running the program.
Comments aud critical remarks are welcome.

Gerhard Berendt

*****************************
Gerhard Berendt
e-mail: berendt@zedat.fu-berlin.de
Internet: http://userpage.fu-berlin.de/~berendt
******************************
