#!PECMD
ENVI^ EnviMode=1  //避免意外错误，空变量，外部变量，
ENVI^ ForceLocal=1  //可以处理大变量. 不影响外部变量


_SUB MBRMOUNT
    SHOW - 0#4
    PART  0#4 -a 0 0 0
    PART  0#4 %1  %2 %3 %4
    PART update 0  //更新OS
    ENVI  &&DRV=Z:
    FIND $%5=,!  SET DRV=%5
    FIND $%5=-,!SHOW   0#4,%&DRV%
_END

_SUB REBOOT
    TEAM MESS         确认重启？   @重启  #YN $N| FIND $%YESNO%=YES, SHUT R
_END
_SUB &WinMenu, W300H380,MBROS映射-114M
    ITEM &B1,L50T40W200H30,映射MBROS,                 CALL MBRMOUNT -a 0x16 0 114M  z:
    ITEM &B2,L50T80W200H30,映射MBROS/WINPE,           CALL MBRMOUNT -a 0x16 71888S 159712S  z:
    //ITEM B3,L50T120W200H30,映射MBROS/WINPE/WINPE,    CALL MBRMOUNT -a 0x16 72936S 155648S  z:

    //ITEM B4,L50T160W200H30,映射PE_OUT,               CALL MBRMOUNT -a 0x16 119537664   91226112  z:
    
    //ITEM B5,L50T200W200H30,映射XP,                   CALL MBRMOUNT -a 0x16 210763776   419430400  z:

    ITEM &B5,L50T250W90H30,删除盘符,  SHOW - 0#4
    ITEM &B5,L160T250W90H30,删除映射,                 CALL MBRMOUNT -a 0  0   0 0    -    
    ITEM &B5,L50T300W200H30,重启,  CALL REBOOT

_END

CALL &WinMenu
