batch file - how to pass values from child process to parent cmd.exe shell? -


i have windows cmd.exe script runs child process , needs collect output child set 3 variables. child process work, , prints out 3 values.

how code parent collect values printed out child ?

i can make amendments child process needed this, parent script must written cmd.exe batch file.

is acceptable child process set environment variables? parent process should able pick up.

child.bat

set var1=123 set var2=321 

parent.bat

echo %var1% echo %var2% call child.bat echo %var1% echo %var2% 

you can set environment variable child program/script whatever language using - there ways set environment variables them.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -