试了看看,大致思路就是这样
-----------------保存到BAT文件,不包含本行----------------
@echo off
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
if exist %%i\WINDOWS7\setup.exe (
cd /d %windir%\system32\
pecmd LINK %Desktop%\WINDOWS7安装版,%%i\WINDOWS7\setup.exe))