@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不到

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不到

