ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / CD and DVD burning functions
  • Burning a data CD
  • Burning an audio CD
BurnerAddFile (Example)
Burning a data CD
The following example is used to add some files to the compilation (data CD).
// Burn a data CD
BurnerMediaType(mediaType_CD_ROM_XA)
// Add the files
ResAdd is boolean
ResAdd = BurnerAddFile("C:\MyDirectory\MyFileA.TXT", "\MyFiles\FileA.TXT")
ResAdd = BurnerAddFile("C:\MyDirectory\MyFileB.TXT", "\MyFiles\FileB.TXT")
// Error occurred?
IF ResAdd = False THEN
// Display the error
Error(ErrorInfo(errMessage))
ELSE
// Burn the CD
BurnerSave()
END
Burning an audio CD
The following example some adds files to the compilation (audio CD).
// Burn an audio CD
BurnerMediaType(mediaType_CDDA_CDROM)
// Add the files
ResAdd is boolean
ResAdd = BurnerAddFile("C:\MyMusic\MySongA.WAV")
ResAdd = BurnerAddFile("C:\MyMusic\MySongB.WAV")
// Error occurred?
IF ResAdd = False THEN
// Display the error
Error(ErrorInfo(errMessage))
ELSE
// Burn the CD
BurnerSave()
END
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help