Code Library
Home Submit Free Hosting Link To Us Contacts

Batch Boot Drive Check

Batch Boot Drive Check Batch Batch Boot Drive Check Download (.zip)



/* 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




  • BatchBoot Drive Check Boot Drive Letter Checking current drive


Batch Boot Drive Check