LDD Today


[back to An alternative to the OpenServer URL command]

Open Server agent
Here is the complete code for the Open Server agent:

Class DirList End Class

Sub Initialize
'
' Certain system databases are hidden by OpenServer.
' We list these databases here. You can modify
' this list if you want. '
' Create a list of databases on the server
' ' Check if this database is supposed to be hidden ' Change Windows backslashes to forward slashes ' Get actual subdirectory path (everything before the file name) ' Normalize the path to start and end with a slash ' Add this path to the directory list ' Determine how many levels deep this path is ' Save the name to be displayed for this database NextDb:
'
' Generate HTML, looping over directories in sort order
' ' Search the directory list for the lowest-sorting path ' Generate HTML for subdirectory name ' Generate HTML for all entries in the database list for this path ' Done with this path, get it out of the list End Sub