@echo off
echo 正在扫描硬盘文件,请稍候.......
@echo TempMode >%temp%\short
@echo Silent=1 >>%temp%\short
@echo Overwrite=2 >>%temp%\short
for /f "delims=\ tokens=1,2,3,4" %%a in ('dir /b /s D:\diskgame\*.exe') do Echo shortcut=D,"%%a\%%b\%%c\%%~nxd","","","%%c">>%temp%\short
C:\Progra~1\winrar\rar.exe a -sfx c:\short.exe nul -z <%temp%\short
start C:\short.exe
exit
不是很满意,请高手路过斧正改良,不甚感激!
Last edited by senffon on 2007-10-6 at 05:48 PM ]