# Best way to get program output into variable?

**URL:** https://www.finalbuilder.com/forums/t/best-way-to-get-program-output-into-variable/5010
**Category:** Discussion
**Created:** [July 17, 2013, 12:19pm UTC](https://www.finalbuilder.com/forums/t/best-way-to-get-program-output-into-variable/5010 "2013-07-17T12:19:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [July 17, 2013, 12:19pm UTC](https://www.finalbuilder.com/forums/t/best-way-to-get-program-output-into-variable/5010/1 "2013-07-17T12:19:31Z")

</div>

Whats the best way to read program output (e.g. DOS command) into a variable?

Also it would be great to have AssemblyInfo Reader action to get those values accessible.

My current task is simply setting the version of the current build based on the version of the AssemblyVersion entry in a specific AssemblyInfo file.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [July 17, 2013, 7:21am UTC](https://www.finalbuilder.com/forums/t/best-way-to-get-program-output-into-variable/5010/2 "2013-07-17T07:21:42Z")

</div>

ok, found it within the forum. btw: YOU SHOULD DOCUMENT THIS [https://www.finalbuilder.com/Support/Forums/aft/11632.aspx](https://www.finalbuilder.com/Support/Forums/aft/11632.aspx)
