Windows Scripting
  Home arrow Windows Scripting arrow Burning Multisession CDs with IMAPI2 in WS...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Burning Multisession CDs with IMAPI2 in WSH
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-11-10

    Table of Contents:
  • Burning Multisession CDs with IMAPI2 in WSH
  • Getting started
  • Building the burn image
  • Adding files and burning the image
  • Final thoughts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Burning Multisession CDs with IMAPI2 in WSH


    (Page 1 of 5 )

    In my last article, I showed you how you can use the Microsoft’s Image Mastering API (IMAPI2) control to create and burn single session CDs from a directory of files. Today, we’re going to take another look at the IMAPI2 control to create multisession CDs.

    Traditional CD formats such as audio CDs and standard data CDs (like photo CDs, for example) are single session discs.  In other words, all of the information on the CD is written to the CD at one time in a single burning session.  Once completed, the disc is closed and its contents cannot be changed.

    With the evolution of CD-Rewritable technology, things changed a bit.  Because you were now able to write and rewrite to the same disc, support was added that allowed a person to write to the same disc again in a new session, thus appending data to a disc that had already been written.  In other words, you could write data to the same disc across multiple sessions.

    Of course, you would need a supporting drive to write the disc and you would also need a supporting drive to read it again.  However, almost all CD-RW capable drives are capable of reading and writing multisession discs.  That means that virtually every device currently on the market is capable.

    In order to burn a multisession disc, each session must write its own lead-in and lead-out section on the disc.  The first session will require around 20MB of space to accomplish this and each subsequent session will need a little over 4MB or so.  This makes multisession discs slightly less efficient than single session.

    This additional space is used to write information about the session, such as where the data starts, and how it fits into the disc's existing file system.  The lead-in section of the first session is slightly larger than the rest because it includes a Table Of Contents.  This TOC can be compared to a partition table on a hard drive.  It tells the CD-ROM what type of file system is in use and where the data resides on the disc.

    More Windows Scripting Articles
    More By Nilpo


     

    WINDOWS SCRIPTING ARTICLES

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek