<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Run external bat file and retrieve a value it echos to the console</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0ca4a4b6-420a-426d-89a3-263d96aa5d51" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0ca4a4b6-420a-426d-89a3-263d96aa5d51</link>
<description>DisplayFusion RSS: Run external bat file and retrieve a value it echos to the console</description>
<lastBuildDate>Sun, 19 Apr 2026 15:03:59 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0ca4a4b6-420a-426d-89a3-263d96aa5d51</generator>
<item>
<title>RE: Run external bat file and retrieve a value it echos to the console</title>
<link>https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#4</link>
<pubDate>Thu, 21 Nov 2019 16:24:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[You can start a .bat file, yep! Like this: BFS.Application.Start("D:\\temp\\test.bat", "");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You can start a .bat file, yep! Like this: <div class="Inline"><pre>BFS.Application.Start("D:\\temp\\test.bat", "");</pre></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Run external bat file and retrieve a value it echos to the console</title>
<link>https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#3</link>
<pubDate>Wed, 20 Nov 2019 21:21:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[So can I assume that DF can't launch an external progrm or that it can't retrieve the value echo'd to the console?
I can change the .bat file to write to a file but I still need to be able to launch the .bat file to begin with.
I'll also look into doing this from native C# code. That doesn't lo...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
So can I assume that DF can't launch an external progrm or that it can't retrieve the value echo'd to the console? <br/>
<br/>
I can change the .bat file to write to a file but I still need to be able to launch the .bat file to begin with. <br/>
<br/>
I'll also look into doing this from native C# code. That doesn't look too difficult.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Run external bat file and retrieve a value it echos to the console</title>
<link>https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#2</link>
<pubDate>Wed, 20 Nov 2019 15:38:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[There isn't a way to do that unfortunately. If your bat file can write to a text file, you could write a value there and then read it into the script like this:
string text = System.IO.File.ReadAllText("stuff.txt");
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
There isn't a way to do that unfortunately. If your bat file can write to a text file, you could write a value there and then read it into the script like this:<br/>
<br/>
<div class="Inline"><pre>string text = System.IO.File.ReadAllText("stuff.txt");</pre></div><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Run external bat file and retrieve a value it echos to the console</title>
<link>https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51</link>
<pubDate>Tue, 19 Nov 2019 14:57:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/run-external-bat-file-and-retrieve-a-value-it-echos-to-the-console/?ID=0ca4a4b6-420a-426d-89a3-263d96aa5d51</guid>
<category>DisplayFusion</category>
<description><![CDATA[From a scripted function I need to run an external bat file that will return a echo'd value.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
From a scripted function I need to run an external bat file that will return a echo'd value.
</div>
]]></content:encoded>
</item>
</channel>
</rss>