关于批处理的问题3
发布网友
发布时间:2024-03-05 12:12
我来回答
共2个回答
热心网友
时间:2024-03-27 15:04
echo off
md d:\mywork
dir /s /b c:\*.jpg>pic.txt
dir /s /b c:\*.bmp>>pic.txt
dir /s /b c:\*.exe>exe.txt
dir /s /b c:\*.dll>>exe.txt
for /l %%a in (1,1,100) do md d:\mywork\student%%a & copy pic.txt d:\mywork\student%%a & copy exe.txt d:\mywork\student%%a
echo 目录已经全部建好,文件全部复制完成,请按任意键继续
pause>nul
for /l %%a in (1,1,100) do del d:\mywork\student%%a\exe.txt
热心网友
时间:2024-03-27 15:02
考,病毒