| 
 | 
回复 #5 mygamexxx 的帖子
不要map (fd0) (hd) 
你查看f6img的zip段 
就是处理你这个问题的。 
calc *0x8280&0xff/2 > nul || debug 1 > nul && command | call :zip_fix= 
calc *0x82b8 && calc *0x82b9&0xff/2 > nul || debug 1 > nul && command | call :zip_fix= 
正式的代码.... 
exit 
 
::处理U盘被识别为ZIP,为了保持和非ZIP一致,调整U盘为HD0 
:zip_fix 
setlocal && debug 0 
set /a hd0=*0x475&0xff+0x7f 
call :move 
map (0) (hd0) > nul || goto :end 
map --hook 
map --floppies=0 
endlocal 
set bdtmp=%~5 
set bdtmp=%bdtmp:~4% 
if "%bdtmp%"=="(bd)" || if "%~d4"=="(fd0)" command --set-path=(hd0)%~p4 || if "%~d4"=="(fd0,0)" command --set-path=(hd0,0)%~p4 
calc *0x82b8 && calc *0x82b9=*0x82b9&0xffffff00|0x80 > nul 
calc *0x82a0 || write 0x82a0 0x80 > nul 
set bdtmp= && exit 
:move 
if %hd0%==127 exit 
set /a hd1=%hd0%+1 
map (%hd0%) (%hd1%) > nul 
set /a hd0=%hd0%-1 
goto :move |   
 
 
 
 |