Here is part of the code of the YAMD Function.

code:
:WAITFORREG					; ******* Wait for windows to create the reg keys
$RC=READVALUE("$LABELKEY\$DRIVELETTER\_LABELFROMREG","CACHE")
IF @ERROR OR $RC="" OR $TIMEOUT<5
$TIMEOUT=$TIMEOUT+1
SLEEP(1)
GOTO WAITFORREG
ENDIF

My question is if the _LABELFROMREG key does not exist, the script seems to loop forever.

Any suggestions?