Batch Boot Drive Check
Boot Drive Check
/* Check for boot drive */
/* RLANUTIL.DLL, containg GetBootDrive, was added in Warp Connect */
call RxFuncAdd "GetBootDrive", "RLANUTIL", "GetBootDrive"
if RxFuncQuery( "GetBootDrive" ) = 0 then do
bootdrive = GetBootDrive()
end
else do
/* This should work in any pre Warp OS/2 version too */
path = value( "PATH", , "OS2ENVIRONMENT" )
parse upper value path with ":\OS2\SYSTEM" -1 bootdrive +2
end
say "Boot drive = "||bootdrive