bug_x

导航

 
@echo off

set "url=www.mzwu.com"

echo 1.字符串截取
echo %url:~4,4%
echo %url:~4,-4%
echo %url:~-8,4%
echo %url:~-8,-4%
echo %url:~,4%
echo %url:~,-4%
echo %url:~4%
echo %url:~-8%

echo.
echo 2.字符串替换,将mzwu替换为163
echo %url:mzwu=163%

pause>nul

  

posted on 2018-05-07 16:59  bug_x  阅读(1843)  评论(0编辑  收藏  举报