krsk
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору п»ї!BAT set /l infofile=%1 ;; set /l infotype=%2 ;; set bosno=%3 set maxsysno=12 if "%infotype%"=="menu" && set N=1 && cat %infofile% | call :menuinfo if "%infotype%"=="menu" && if exist showcol && set /a showcol=%showcol%-%N%+1 > nul if "%infotype%"=="run" && set N=1 && cat %infofile% | call :runinfo set infofile= ;; set infotype= ;; set bosno= ;; set maxsysno= ;; set N= goto :eof :menuinfo set vname=%1 if "%vname:~,1%"==";" set vname= if not exist vname set /a vmenuno=%N%-1 if not exist vname exit set vname%N%=%vname% set /l vdsk%N%=%2 set /l vdir%N%=%3 set /a N=%N%+1 > nul shift ;; shift ;; shift ;; shift ;; shift ;; shift ;; shift if %N%<=%maxsysno% goto :menuinfo set vname= exit :runinfo set vname=%1 if "%vname:~,1%"==";" set vname= if not exist vname exit if %N%==%bosno% set /l monvhd=%4 if %N%==%bosno% set /l subvhd=%5 if %N%==%bosno% set /l bakvhd=%6 if %N%==%bosno% set /l tmpvhd=%7 if %N%==%bosno% && if "%tmpvhd%"=="no" && set tmpvhd= if %N%==%bosno% && set vname= && exit set /a N=%N%+1 > nul shift ;; shift ;; shift ;; shift ;; shift ;; shift ;; shift if %N%<=%maxsysno% goto :runinfo set vname= exit :eof |