i am executing a command in a batch file(.bat). This command gives me a multiple line response like
Get String Return value = 1
[Name]
name=john
and i want to get john from this output in a variable but i don't know how to do this.
Thanks in advance!!
@echo off
for /f "tokens=1,* delims==" %%A in ('command ^| find /i "name="') do set "name=%%B"
echo %name%
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.