China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 10:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Why can't the search statement in this batch file search the floppy drive? View 1,636 Replies 0
Original Poster Posted 2003-07-28 00:00 ·  中国 广东 肇庆 端州区 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
Why can the search command statement in this batch file find subdirectories on the hard disk, but not subdirectories on the floppy drive?

for %%a in (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:)

do if exist %%a\*.bat dir /b /s %%a\*.bat

Forum Jump: