
CODE: [Copy to clipboard]另外发现你的 “根目录” 概念不清,学习一下 dos 根目录的概念。@echo off & setlocal ENABLEDELAYEDEXPANSION
for %%c in (c: d: e: f:) do (
if exist "%%c\Program Files\xj11\hal_XJQ\ws.txt" type "%%c\Program Files\xj11\hal_XJQ\ws.txt" >>r.txt
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |