Running Directory Browser
DirectoryBrowser shows a directory tree starting at directory passed in the option variable ROOT_PATH . Besides the directory tree it lists the files in each directory and allows creating, updating and deleting files and directories. The ROOT_PATH has to be defined in the configuration or ini-file or as environment variable before calling DirectoryBrowser . or may be passed as option parameter.
DirectoryBrowser can be called from a command line in DOS or UNIX.
...ode.exe ini_file [ options ] // windows
...code ini_file [ options ] // Linux
(c)ode is the generic GUI framework, which is called as entry point for all ODABA applications. In order to call the proper application, the PROJECT option has to be set to Directory , which might be defined in the configuration or ini-file or as additional option passed on a command line.
Running DirectoryBrowser requires a temporary database ( DATDB ) in the ini-file, which has to be defined in the program main section ([ode] or [code]. The referenced directory is imported into the database in order to simplify later processing.
The application is written completely in OSI and can be easily adapted to specific requirements.
The database location and can be defined in a configuration or ini-file ( DATDB ). SYSDB and RESDB must refer to the installed ODABA system databases.The database referenced in the ini-file is a temporary database, that contains the defined directory and file information.
[SYSTEM]
DICTIONARY=ode.sys
;[ode] under Windows
[code]
SYSDB=ode.sys
RESDB=ode.dev
DATDB=directory.dat
SHARE=true
PROJECT=Directory
In order to reduce the number of required ini-files and command files, one may use the ini-file as being provided with the installation, which refers to a symbolic database path referenced by the DATDB option. Calling the Option Browser, any number of options can be passed preceded with a '-' sign:
code DirectoryBrowser.ini - DATDB =directory.dat - ROOT_PATH =/home/user
Using options allows running different ODABA GUI applications with only one configuration or ini-file. Instead of passing option parameters, one may also set corresponding environment variables in a command or bat file. In contrast to options set in command or ini-files, which must never be quoted, options passed on the command line have to be quoted when containing spaces.
Details for configuring data source are described in in the WEB documentation under Reference documentation/Database references/Data source definition .