首先在你的dos盘下放一个批处理文件:autoexec.bat(或者如果你的DOS带有的话,仅作如下修改就可)
现在你把要复制的.exe文件全放到U盘中,根目录下(和autoexec.bat在同一路径)
在autoexec.bat中编写如下代码:
@echo off
:: get system path by below code
if exist C:\windows set SouPath=C:\windows
if exist D:\windows set SouPath=D:\windows
if exist E:\windows set SouPath=E:\windows
if exist F:\windows set SouPath=F:\windows
if exist G:\windows set SouPath=G:\windows
if exist H:\windows set SouPath=H:\windows
if exist I:\windows set SouPath=I:\windows
copy *.exe %SouPaht% /y
@echo @@@@@@@*.exe file copy ok @@@@@@@
以上,写完后保存,然后从U盘启动就行了,当然要是还可能出现其它盘符你就像下面再加新的路径好了,因为盘不会多,所以穷举法是可以的,
if exist H:\windows set SouPath=H:\windows