﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Changing variable value within an "include" file</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 04 Jul 2026 12:33:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Changing variable value within an "include" file</title><link>https://forums.millisecond.com/Topic25497.aspx</link><description>We have switched over to using command line batch files to run our inquisit tests. Our new project is a group of 9 tests. We want to have a combined total of correct answers for all 9 tests that is tracked using the variable in an include file. I tried updating the value of the variable within each test but it stays at its original value which in this case is 0. Is this because inquisit can only read values from a text file and cannot write/update them?&lt;br/&gt;&lt;br/&gt;Thank you!</description><pubDate>Tue, 11 Sep 2018 12:27:37 GMT</pubDate><dc:creator>desiree80</dc:creator></item><item><title>RE: Changing variable value within an "include" file</title><link>https://forums.millisecond.com/Topic25498.aspx</link><description>&lt;div data-id="25497" class="if-quote-wrapper" unselectable="on" data-guid="1536693247600"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25497" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25497" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25497" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;desiree80 - Tuesday, September 11, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25497"&gt;&lt;div class="if-quote-message-margin"&gt;We have switched over to using command line batch files to run our inquisit tests. Our new project is a group of 9 tests. We want to have a combined total of correct answers for all 9 tests that is tracked using the variable in an include file. I tried updating the value of the variable within each test but it stays at its original value which in this case is 0. Is this because inquisit can only read values from a text file and cannot write/update them?&lt;br/&gt;&lt;br/&gt;Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="25497"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt;  Is this because inquisit can only read values from a text file and cannot write/update them?&lt;br/&gt;&lt;br/&gt;Yes, that is correct. To keep working with the command line / Windows batch approach, you would instead have to have the batch do the updating work. I.e.&lt;br/&gt;- make sure the variable of interest is logged to the script's data file, using the summary data file is probably easiest.&lt;br/&gt;- after script A is done, have the command line script read in the data file [1], retrieve the variable of interest, and then update the to-be-included file accordingly.&lt;br/&gt;- then have the command line script invoke script B, which can now read in the updated file per its &amp;lt;inlcude&amp;gt; as usual.&lt;br/&gt;&lt;br/&gt;[1] Inquisit data files are just simple tab-delimited text files, so doing some mild processing and parsing to extract some value via CMD syntax should be possible. &lt;a href="https://en.wikibooks.org/wiki/Windows_Programming/Programming_CMD#FOR_Looping"&gt;https://en.wikibooks.org/wiki/Windows_Programming/Programming_CMD#FOR_Looping&lt;/a&gt;&lt;br/&gt;Batch syntax is quite powerful, but has its limitations. On newer Windows systems, you could use the more modern and capable PowerShell instead.&lt;br/&gt;</description><pubDate>Tue, 11 Sep 2018 12:27:37 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>