if [%1]==[-H] or [%1]==[-h] goto ~help
if exist \OCM-BIOS.DA? ren \OCM-BIOS.DA? ALT-BIOS.DA?
if exist \ALT-BIOS.DAT goto ~found
echo
echo *** OCM-BIOS.DAT not found
end
~found
if exist \ALT-BIOS.DA%1 ren \ALT-BIOS.DA%1 OCM-BIOS.DA%1
if exist \OCM-BIOS.DA%1 set ST=1
if [%ST%]==[1] if [%2]==[-R] or [%2]==[-r] SETSMART -F8FD
if not exist \OCM-BIOS.DA%1 set ST=2
if [%ST%]==[2] ren \ALT-BIOS.DAT OCM-BIOS.DAT
if [%ST%]==[2] if [%1]==[-R] or [%1]==[-r] SETSMART -F8FD
SETSMART -F8
if [%ST%]==[2] echo OCM-BIOS.DAT selected
if [%ST%]==[1] echo OCM-BIOS.DA%1 selected
set ST=
end
~help
cls
echo Syntax: sdbios [options]
echo
echo Bad"|No param:  Select OCM-BIOS.DAT
echo
echo Options:
echo       0 to 9   Select .DA0 to .DA9
echo           -r   Confirm and reboot
echo           -h   Shows this help
echo
echo Examples:      sdbios 0
echo                sdbios 1 -r
echo
echo Available SDBIOS names and paths:
echo    (primary)   \OCM-BIOS.DAT
echo  (secondary)   \OCM-BIOS.DA0 to .DA9
echo   (disabled)   \ALT-BIOS.DA?
echo
echo SDBIOS.BTM must be run at least once
echo to initialize each new SDBIOS group.
echo
echo The SDBIOS switching tool requires
echo OCM-PLD firmware v3.9.1 or later.
echo
end

SDBIOS.BTM v1.2 by KdL 2022.09.24
