Jump to content
Savalainen

List of ERRORLEVEL values...

Recommended Posts

I think he refers to values such as 0 (=the command was executed successfully), 1 (error X), 2 (error Y) like you have in CMD.

Yes, you right - I mean "return code of execution" in cmd file, for example, i wrote simple cmd:


echo off

for /D %%f in (D:\temp\cd\*) do (

"C:\Program Files\CDBurnerXP\cdbxpcmd.exe" --burn-data -device:0 -dao -close -name:MGGT572 -verify -eject -folder[\]:%%f

if not errorlevel 0 goto err

echo OK

)

:err

echo ERROR

and inserted, specially, finalized disk. I thought I should see a message "ERROR", but i saw:

An error (287) occured while executing the command: Disc is finalized:

The disc is finalized! Note that is not possible to write data on the finalized disc!

OK

ERROR

Burn operation is not successfully (not 0) and it should goto err label - only ERROR message should appear. Am I wrong (and do not laugh if yes :) )?

PS. Work on Win7 x64

Share this post


Link to post
Share on other sites

If the burning will be successful, it would go to echo error anyway.

After "echo OK" you can add:

pause

exit

Or:

if errorlevel 0 (

echo OK

pause

exit

) else goto err

:err

echo ERROR

pause

exit

@ floele

Though I'm not using the command-line version of CDBurnerXP, it would be nice if you'd implement this feature (if possible (?)).

Share this post


Link to post
Share on other sites

It will return an error code like 0x80040289, where the last 3 digits after conversion to decimal specify the actual issue.


STARBURN_OPERATION_SUCCEEDED = 0,
STARBURN_ERR_SYSTEM_ERROR = 597,
STARBURN_ERR_SDK_ERROR = 629,
STARBURN_ERR_INVALID_ARG_TYPE = 630,
STARBURN_ERR_INCORRECT_VALUE_RANGE = 631,
STARBURN_ERR_OUT_OF_MEMORY = 632,
STARBURN_ERR_INDEX_OUT_OF_RANGE = 633,
STARBURN_ERR_OBJECT_IS_BUSY = 634,
STARBURN_ERR_DEVICE_NOT_SPECIFIED = 635,
STARBURN_ERR_DEVICE_NOT_READY = 636,
STARBURN_ERR_DEVICE_DISCONNECTED = 637,
STARBURN_ERR_DEVICE_READ_ONLY = 638,
STARBURN_ERR_DEVICE_FEATURE_NOT_SUPPORTED = 639,
STARBURN_ERR_WRITEMODE_NOT_SUPPORTED = 640,
STARBURN_ERR_DISC_READ_ONLY = 641,
STARBURN_ERR_DISC_NOT_ERASED = 642,
STARBURN_ERR_NO_DISC_OR_DISC_UNKNOWN = 643,
STARBURN_ERR_UNKNOWN_DISC_FILE_SYSTEM = 644,
STARBURN_ERR_UNSUPPORTED_DISC_FILE_SYSTEM = 645,
STARBURN_ERR_DISC_TYPE_INCORRECT = 646,
STARBURN_ERR_DISC_FINALIZED = 647,
STARBURN_ERR_DISC_IS_NOT_EMPTY = 648,
STARBURN_ERR_DISC_NO_FREE_SPACE = 649,
STARBURN_ERR_DISC_READ_ERROR = 650,
STARBURN_ERR_INCORRECT_IMAGE_STATE = 651,
STARBURN_ERR_INCORRECT_TRACK_NUMBER = 652,
STARBURN_ERR_INCORRECT_TRACK_TYPE = 653,
STARBURN_ERR_INCORRECT_SPEED_VALUE = 654,
STARBURN_ERR_WRONG_LBA_ADDRESS = 655,
STARBURN_ERR_FILE_NAME_DUPLICATION = 656,
STARBURN_ERR_FILE_NOT_FOUND = 657,
STARBURN_ERR_FILE_NOT_SPECIFIED = 658,
STARBURN_ERR_FILE_NAME_INVALID = 659,
STARBURN_ERR_FILE_WRONG_SIZE = 660,
STARBURN_ERR_FILE_WRONG_STATE = 661,
STARBURN_ERR_FILE_WRONG_TYPE = 662,
STARBURN_ERR_FS_FILE_SHARING_VIOLATION = 663,
STARBURN_ERR_FS_FILE_CREATION = 664,
STARBURN_ERR_FS_FILE_WRITE = 665,
STARBURN_ERR_UNSUPPORTED_MEDIA_FILE = 666,
STARBURN_ERR_INCORRECT_AUDIOSTREAM_SIZE = 667,
STARBURN_ERR_INCORRECT_FILE_SIZE = 668,
STARBURN_ERR_TRACK_NOT_ADDED = 669,
STARBURN_ERR_DVD_TREE_WRONG_STRUCTURE = 670,
STARBURN_ERR_DVD_TREE_FAILED = 671,
STARBURN_ERR_NO_DATA = 672,
STARBURN_ERR_VERIFY_DISC_FAILED = 673,
STARBURN_ERR_FS_FILE_READ = 674,
STARBURN_ERR_NOT_IMPLEMENTED = 675,
STARBURN_ERR_DVD_AUTHORIZE_FAILED = 676,
STARBURN_ERR_DVD_CSS_FAILED = 677,
STARBURN_ERR_UNRECOVERABLE_BAD_BLOCK = 678,
STARBURN_ERR_TRANSPORT_NOT_SUPPORTED = 679,
STARBURN_ERR_READMODE_NOT_SUPPORTED = 680,
STARBURN_ERR_DEVICE_SHARING_VIOLATION = 681,
STARBURN_ERR_INVALID_PATH_PROVIDED = 682,
STARBURN_ERR_CANCELED = 683,
STARBURN_ERR_INVALID_LICENSE = 1280,
STARBURN_ERR_COMPONENT_NOT_INITIALIZED = 1281,
STARBURN_ERR_OBJECT_NOT_INITIALIZED = 1282,
[/code]

Share this post


Link to post
Share on other sites

If the burning will be successful, it would go to echo error anyway.

After "echo OK" you can add:

Or:

@ floele

Though I'm not using the command-line version of CDBurnerXP, it would be nice if you'd implement this feature (if possible (?)).

Sorry, but you are not right. Sorry for delay of my answer. Command Line interface is very usefull when you must burn a large number of CD/DVD - it's very fast and simple. Sometimes I have to write about 50 CD - if I'll use GUI interface it will be so long time, but when I am using comman line - operating time is reduced by several times.Here is my work cmd file. Algorithm:

1. Variable CL_PATH - path where is subfolder to burn, one subfoder = one CD/DVD. You can replace it by you own path.

2. If burn of subfolder to CD will successful - subfolder will be delete.

3. When all subfolder wil be burned - cmd will be stopped. If an error occurs - cmd will be stopped too and error message text will be apear


echo off

cls

set CL_PATH=D:\temp\cd\*

cd .

for /D %%f in (%CL_PATH%) Do Call :BurnCD "%%f"

exit /b

:BurnCD

if %errorlevel% GTR 0 goto :eof

echo .

echo Insert CD/DVD for burning "%~1"...

echo .

"C:\Program Files\CDBurnerXP\cdbxpcmd.exe" --wait-for-disc -device:0

"C:\Program Files\CDBurnerXP\cdbxpcmd.exe" --burn-data -device:0 -dao -close -verify -eject -folder[\]:"%~1"

if %errorlevel% GTR 0 goto err

echo .

echo "%~1" burned on CD/DVD!

rd /s /q "%~1"

if %errorlevel% GTR 0 (

echo Unsuccessful delete "%~1"

) else (

echo Successful delete "%~1"

)

exit /b

:err

IF %ERRORLEVEL%==629 ECHO ERROR!!! SDK_ERROR

IF %ERRORLEVEL%==630 ECHO ERROR!!! INVALID_ARG_TYPE

IF %ERRORLEVEL%==631 ECHO ERROR!!! INCORRECT_VALUE_RANGE

IF %ERRORLEVEL%==632 ECHO ERROR!!! OUT_OF_MEMORY

IF %ERRORLEVEL%==633 ECHO ERROR!!! INDEX_OUT_OF_RANGE

IF %ERRORLEVEL%==634 ECHO ERROR!!! OBJECT_IS_BUSY

IF %ERRORLEVEL%==635 ECHO ERROR!!! DEVICE_NOT_SPECIFIED

IF %ERRORLEVEL%==636 ECHO ERROR!!! DEVICE_NOT_READY

IF %ERRORLEVEL%==637 ECHO ERROR!!! DEVICE_DISCONNECTED

IF %ERRORLEVEL%==638 ECHO ERROR!!! DEVICE_READ_ONLY

IF %ERRORLEVEL%==639 ECHO ERROR!!! DEVICE_FEATURE_NOT_SUPPORTED

IF %ERRORLEVEL%==640 ECHO ERROR!!! WRITEMODE_NOT_SUPPORTED

IF %ERRORLEVEL%==641 ECHO ERROR!!! DISC_READ_ONLY

IF %ERRORLEVEL%==642 ECHO ERROR!!! DISC_NOT_ERASED

IF %ERRORLEVEL%==643 ECHO ERROR!!! NO_DISC_OR_DISC_UNKNOWN

IF %ERRORLEVEL%==644 ECHO ERROR!!! UNKNOWN_DISC_FILE_SYSTEM

IF %ERRORLEVEL%==645 ECHO ERROR!!! UNSUPPORTED_DISC_FILE_SYSTEM

IF %ERRORLEVEL%==646 ECHO ERROR!!! DISC_TYPE_INCORRECT

IF %ERRORLEVEL%==647 ECHO ERROR!!! DISC_FINALIZED

IF %ERRORLEVEL%==648 ECHO ERROR!!! DISC_IS_NOT_EMPTY

IF %ERRORLEVEL%==649 ECHO ERROR!!! DISC_NO_FREE_SPACE

IF %ERRORLEVEL%==650 ECHO ERROR!!! DISC_READ_ERROR

IF %ERRORLEVEL%==651 ECHO ERROR!!! INCORRECT_IMAGE_STATE

IF %ERRORLEVEL%==652 ECHO ERROR!!! INCORRECT_TRACK_NUMBER

IF %ERRORLEVEL%==653 ECHO ERROR!!! INCORRECT_TRACK_TYPE

IF %ERRORLEVEL%==654 ECHO ERROR!!! INCORRECT_SPEED_VALUE

IF %ERRORLEVEL%==655 ECHO ERROR!!! WRONG_LBA_ADDRESS

IF %ERRORLEVEL%==656 ECHO ERROR!!! FILE_NAME_DUPLICATION

IF %ERRORLEVEL%==657 ECHO ERROR!!! FILE_NOT_FOUND

IF %ERRORLEVEL%==658 ECHO ERROR!!! FILE_NOT_SPECIFIED

IF %ERRORLEVEL%==659 ECHO ERROR!!! FILE_NAME_INVALID

IF %ERRORLEVEL%==660 ECHO ERROR!!! FILE_WRONG_SIZE

IF %ERRORLEVEL%==661 ECHO ERROR!!! FILE_WRONG_STATE

IF %ERRORLEVEL%==662 ECHO ERROR!!! FILE_WRONG_TYPE

IF %ERRORLEVEL%==663 ECHO ERROR!!! FS_FILE_SHARING_VIOLATION

IF %ERRORLEVEL%==664 ECHO ERROR!!! FS_FILE_CREATION

IF %ERRORLEVEL%==665 ECHO ERROR!!! FS_FILE_WRITE

IF %ERRORLEVEL%==666 ECHO ERROR!!! UNSUPPORTED_MEDIA_FILE

IF %ERRORLEVEL%==667 ECHO ERROR!!! INCORRECT_AUDIOSTREAM_SIZE

IF %ERRORLEVEL%==668 ECHO ERROR!!! INCORRECT_FILE_SIZE

IF %ERRORLEVEL%==669 ECHO ERROR!!! TRACK_NOT_ADDED

IF %ERRORLEVEL%==670 ECHO ERROR!!! DVD_TREE_WRONG_STRUCTURE

IF %ERRORLEVEL%==671 ECHO ERROR!!! DVD_TREE_FAILED

IF %ERRORLEVEL%==672 ECHO ERROR!!! NO_DATA

IF %ERRORLEVEL%==673 ECHO ERROR!!! VERIFY_DISC_FAILED

IF %ERRORLEVEL%==674 ECHO ERROR!!! FS_FILE_READ

IF %ERRORLEVEL%==675 ECHO ERROR!!! NOT_IMPLEMENTED

IF %ERRORLEVEL%==676 ECHO ERROR!!! DVD_AUTHORIZE_FAILED

IF %ERRORLEVEL%==677 ECHO ERROR!!! DVD_CSS_FAILED

IF %ERRORLEVEL%==678 ECHO ERROR!!! UNRECOVERABLE_BAD_BLOCK

IF %ERRORLEVEL%==679 ECHO ERROR!!! TRANSPORT_NOT_SUPPORTED

IF %ERRORLEVEL%==680 ECHO ERROR!!! READMODE_NOT_SUPPORTED

IF %ERRORLEVEL%==681 ECHO ERROR!!! DEVICE_SHARING_VIOLATION

IF %ERRORLEVEL%==682 ECHO ERROR!!! INVALID_PATH_PROVIDED

IF %ERRORLEVEL%==683 ECHO ERROR!!! CANCELED

IF %ERRORLEVEL%==1280 ECHO ERROR!!! INVALID_LICENSE

IF %ERRORLEVEL%==1281 ECHO ERROR!!! COMPONENT_NOT_INITIALIZED

IF %ERRORLEVEL%==1282 ECHO ERROR!!! OBJECT_NOT_INITIALIZED

echo Burn was NOT successful!!!

Here is a similar cmd, but even easier - wihtout errors handling and deleting burned folder (honestly, I use it :) )

echo off

cls

set CL_PATH=D:\temp\cd\*

for /D %%f in (%CL_PATH%) do (

echo .

echo Insert CD/DVD for burning %%f ...

echo .

"C:\Program Files\CDBurnerXP\cdbxpcmd.exe" --wait-for-disc -device:0

"C:\Program Files\CDBurnerXP\cdbxpcmd.exe" --burn-data -device:0 -dao -close -verify -eject -folder[\]:%%f

echo .

echo %%f burned on CD/DVD!

)

Thanks for help! Best Regards from Russia!

P.S. I'm using Win7x64...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.