|
//理顺磁盘盘符
MYTHREAD CALL ORDER_DRIVE
_END
_SUB _LINK
//加载外置程序
EXEC =!%WS%\FBINST --onlylink "PETOOLS/*.wim" X:\TEMP
EXEC =!%WS%\FBINST --onlylink "PETOOLS/*.exe" X:\TEMP
EXEC =!%WS%\WIMTOOL /Reg
REGI HKCU\Software\WimTool\AutoMountPath=W:\MountPath
SITE %USERPROFILE%\「开始」菜单\程序\启动,+H
LINK %Programs%\记事本,%WS%\NOTEPAD.EXE
LINK %Programs%\命令提示符,%WS%\CMD.EXE
LINK %Programs%\注册表编辑器,%W%\REGEDIT.EXE
LINK %Programs%\资源管理器,%W%\EXPLORER.EXE,"/e",shell32.dll#45
LINK %Programs%\ImDisk虚拟磁盘,%WS%\imdisk.cpl,,imdisk.cpl#0
_END
_SUB FREEUSB
FORM &T=%D%
//TEAM FORM &T,&B=%D%| MESS T=[%T%] B=[%B%]
FIND $%&T%=DRIVE_FIXED,!! FIND $%&RP%=NA,! SUBJ *%&D% //U盘后的固定磁盘
FIND $DRIVE_USBFLASH = %&T%, ENVI &T=DRIVE_USBDISK //USB软盘(DRIVE_USBFLASH) ,当作 USB硬盘(DRIVE_USBDISK)
FIND $%&T%=DRIVE_USBDISK,!! SUBJ *%&D% //U盘
FIND $%&T%=DRIVE_USBDISK,!! FIND $%&RP%=NA, ENVI &RP=%&D% //RP:第一个U盘
MSTR &D=%&I%,1,%&DRVS%
CALC &I=%&I% + 1 |
|