大家好~~
上次的问题有问到解答了!!
这两行CMD指令可以做到:
D:
FOR /F %I IN ('DIR /A-D /B /S AfolderUnderD\*.txt') DO (ECHO ####%I>>dir1.txt
& ECHO.>>dir1.txt & TYPE %I>>dir1.txt & ECHO.>>dir1.txt & ECHO.>>dir1.txt)
出来是这样: ####D:\AfolderUnderD\A.txt
hello,
everyone
####D:\AfolderUnderD\B\B-1.txt
my name is John
想再请问说 如果我想把路径摆在每一行的前面 而非只有开头一行
像是: D:\AfolderUnderD\A.txt #### hello,
D:\AfolderUnderD\A.txt #### everyone
D:\AfolderUnderD\B\B-1.txt #### my name is John
请问该如何做呢?
有试成功会酬谢2000P
感谢!!!