本帖最后由 pcl_test 于 2016-11-21 12:39 编辑
- set ZmA=C:\Users\Administrator\Desktop\
-
- set lineA=1
- (for /l %%a in (1 1 %lineA%) do set /p docA=)<c:\xa.txt
- set docA
- echo %ZmA%%docA%
-
- set lineB=2
- (for /l %%a in (1 1 %lineB%) do set /p docB=)<c:\xa.txt
- set docB
- echo %ZmA%%docB%
-
- set lineC=3
- (for /l %%a in (1 1 %lineC%) do set /p docC=)<c:\xa.txt
- set docC
- echo %ZmA%%docC%
-
-
- set lineD=4
- (for /l %%a in (1 1 %lineD%) do set /p docD=)<c:\xa.txt
- set docD
- echo %ZmA%%docD%
-
- set lineE=5
- (for /l %%a in (1 1 %lineE%) do set /p docE=)<c:\xa.txt
- set docE
- echo %ZmA%%docE%
复制代码 ps:新手学习批处理。。。(手下留情)
set lineB=2
(for /l %%a in (1 1 %lineB%) do set /p docB=)<c:\xa.txt
其实这语句是在论坛搜索到的。
具体意思还是不懂哦。
有大大,能帮忙注释下么 |