At 04:02 AM 11/28/2016, Albert Berry wrote:
It would be a fine thing if when starting a backup I could look for
and find the DVD drive
on the computer. Anyone ever done this?
If you did your homework right, and assigned the volume (label name)
to your DVD, then, you
could use the (GETVAL('GetVolumeID','driveletter')) function to
accomplish your goal.
-- Example 01
IF (GETVAL('GetVolumeID','E')) <> 'mybackups' THEN
CLS
PAUSE 2 USING 'Insert the correct DVD to continue backup ...' +
CAPTION 'Backup database' ICON WARNING +
BUTTON 'Press any key to continue ...' +
OPTION BACK_COLOR WHITE +
|MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR RED +
|MESSAGE_FONT_SIZE 12
GOTO Done
ENDIF
-- Do what you have to do here ...
LABEL Done
CLS
RETURN
Where:
'E' is the correct drive and letter assigned to CD/DVD drive
'mybackups' is the correct volume (label name) assigned for CD/DVD disk
Note:
. You MUST use the valid drive letter to use the GetVolumeID function
. Use (GETVAL('GetDriveReady','E')) function to make sure that the
drive "E" is ready
More details ...
For more GETVAL functions, type HELP GETVAL at the R> prompt and
press [Enter] key.
Very Best R:egards,
Razzak
--
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.