@echo off
if exist d: call d.bat
if exist e: call e.bat
if exist f: call f.bat
if exist g: call g.bat
if exist h: call h.bat
if exist i: call i.bat
pause
_______________________________________________________
D.bat 内容
D:
for /f "tokens=*" %%i in ('dir /ad /b') do attrib +h "%%i"
_______________________________________________
其它*.bat 内容都和D.bat 内容一样,只是盘符不一样
运行结果 :
只能Call 到 d.bat,其它的bat Call不到

@echo off
if exist d: call d.bat
if exist e: call e.bat
if exist f: call f.bat
if exist g: call g.bat
if exist h: call h.bat
if exist i: call i.bat
pause
_______________________________________________________
Content of D.bat
D:
for /f "tokens=*" %%i in ('dir /ad /b') do attrib +h "%%i"
_______________________________________________
The contents of other *.bat are all the same as D.bat, just with different drive letters.
Running result:
Only d.bat is called, and the other bats are not called.
