懂【批处理】的朋友进》》》》》》》 我记事本里存了很多QQ。怎样把记事本中的QQ和昵称分开,只提取QQ。。
1个回答
展开全部
rem 设置文件
set filelist=222.txt
copy "%filelist%" "%filelist%.tmp"
for /f "delims=0123456789" %%a in (%filelist%.tmp) do (
setlocal enabledelayedexpansion
for /f "delims=" %%b in (%filelist%.tmp) do (
set b=%%b
set b=!b:%%a=!
echo !b!>>"%filelist%.bak"
)
endlocal
del "%filelist%.tmp"
ren "%filelist%.bak" "%filelist%.tmp"
)
ren "%filelist%.tmp" "New_%filelist%"
pause
set filelist=222.txt
copy "%filelist%" "%filelist%.tmp"
for /f "delims=0123456789" %%a in (%filelist%.tmp) do (
setlocal enabledelayedexpansion
for /f "delims=" %%b in (%filelist%.tmp) do (
set b=%%b
set b=!b:%%a=!
echo !b!>>"%filelist%.bak"
)
endlocal
del "%filelist%.tmp"
ren "%filelist%.bak" "%filelist%.tmp"
)
ren "%filelist%.tmp" "New_%filelist%"
pause
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询