A. Change/add the following registry keys :-

KEY: HKLM\Software\Microsoft\MSSQLServer\MSSQLServer
VALUE: DefaultData
VALUE: DefaultLog

Just put in a directory name (no trailing backslash) for these.

This works only for databases that you create with the CREATE DATABASE statement, not for databases created from Enterprise Manager.

(Answer courtesy of Kalen Delaney)