Board logo

标题: 一个批量扫描并建立游戏快捷方式的批处理 [打印本页]

作者: senffon     时间: 2007-10-6 17:46    标题: 一个批量扫描并建立游戏快捷方式的批处理


@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 ]
作者: senffon     时间: 2007-10-6 17:50
不知道在D:\diskgame 下存游戏目录不平行的时候如何处理!
作者: senffon     时间: 2007-10-8 13:57
人气?失望!

[ Last edited by senffon on 2007-10-12 at 02:13 AM ]