批处理怎样调用目录下1.txt每一行内容输入到另一个2.txt每行后面呢?
.txt内容PickerAppend.vacskin_020_tds_small.vacskin_021_tds_middle.vacskin_022_tds_large...
.txt内容PickerAppend.vac
skin_020_tds_small.vac
skin_021_tds_middle.vac
skin_022_tds_large.vac
skin_024_red.vac
skin_025_desdbody.vac
.......
就是这样每一行有文件名。几百个。我希望将这每一行文件名输入到另一个2.txt每一行段尾?
请求帮助 展开
skin_020_tds_small.vac
skin_021_tds_middle.vac
skin_022_tds_large.vac
skin_024_red.vac
skin_025_desdbody.vac
.......
就是这样每一行有文件名。几百个。我希望将这每一行文件名输入到另一个2.txt每一行段尾?
请求帮助 展开
1个回答
展开全部
@echo off & setlocal enabledelayedexpansion
set n=0
for /f "delims=" %%a in (1.txt) do (
set /a n+=1
set "[!n!=%%~a"
)
(for /f "tokens=1* delims=:" %%a in ('findstr .* 2.txt') do (
set /p "s=%%~b" <nul
if defined [%%a echo ![%%a!
))>#
move # 2.txt
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询