批处理截取指定字符串

[email protected] ,截取abc(name)作为名称输出,截取1.0.0座位版本号(version)输出
脚本该怎么写?

不太明白你的具体意思,试下,是不是你要的

@echo off
for /f "tokens=1 delims=@ " %%i in (a.txt) do echo %%i
pause

  a.txt里内容如下:

[email protected]

[email protected]

[email protected] 

追问

字符串:[email protected] ,要截取@左边的输出名称,@右边的输入版本号

温馨提示:答案为网友推荐,仅供参考
相似回答