Sounds like a great idea?  Then check out this article, which describes the creation of a command-line tool that makes generating nightly builds from the code stored in Microsoft Visual Studio Team Foundation Server -- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/NtBldTmSrv.asp