Looking to write to CD or DVD media via a script? Did you know that Windows includes an API to do just that? Version 2.0 of this API that is included in Windows Vista has also been made available for Windows XP and Windows Server 2003: Image Mastering API v2.0

IMAPI is the optical burning engine in Windows products. Version 2 of IMAPI will extend Windows Vista support for DVD media to Windows XP and to Windows Server 2003.

I wasn’t previously aware of this API and it looks pretty cool, TechNet has full details on the API and how to use it:

Here are the links for the KB article describing the version 2.0 update and where to download it for Windows XP/Server 2003: