亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

BAT批量去除文件首行以及批量合并文件腳本

 更新時(shí)間:2015年07月10日 10:24:44   投稿:junjie  
這篇文章主要介紹了BAT批量去除文件首行以及批量合并文件腳本,本文直接給出實(shí)例代碼,需要的朋友可以參考下

bat批量去除文件首行

復(fù)制代碼 代碼如下:

set n=1
:starline
for %%j in (*.txt) do (
:3
if exist D:\work\test\new_%n%.txt (set /a n+=1&goto 3)
set file=%n%.txt
for /f "skip=1 delims=" %%i in ('type "%file%"') do (
echo %%i >>D:\work\test\new_%n%.txt
)
set /a n+=1&goto starline
)
::start "" D:\work\test\new_%n%.txt
::pause>nul

 

將一批文件合并到一個(gè)文件

復(fù)制代碼 代碼如下:

@echo off
for /f "delims=" %%a in ('dir/b *.txt') do (
type "%%a">>All.txt
)

相關(guān)文章

最新評(píng)論