
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
for %%D 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 "%%D:\%Folder%" (
cd /d "%%D:\%Folder%"
rem 在这里插入要运行的代码...
set in=&set /p in=回车继续,任意字符退出...
if not "!in!"=="" exit
)
)
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |