//获得第几个分区的物理号[和逻辑号]
//GetPhyPt  %hd% %id_num%  Var_Phy  [Var_Logic]
 _SUB  GetPhyPt 
    SET &hd=%~1
    SET &num=%~2
    part list part %&hd%,&&Vs
    SED &&Vs2=0,[-\@][1-9][0-9]*[ ]*,,%&Vs%
    MSTR &&lpt2=<%&num%>%&Vs2%
    part -iv=8 -phy# list part %&hd%:%&lpt2%,&&ppt2
    //MESS. [%Vs%] [%Vs2%] [%lpt2%] [%ppt2%]
    ENVI-ret %~3=%&ppt2%
    ENVI-ret %~4=%&lpt2%
_END

GetPhyPt 0  ppt2  lpt2
MESS %ppt2%  [%lpt2%]

