• Interesting question.

    Using .NET (Framework 2 or later) it can also be done using SMO, there are public functions to get and set the (default) backup directory. Documented for SQL 2005 at Settings.BackupDirectory Property.

    Tom