﻿<?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 6  » Batch script control</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 15 Apr 2026 05:42:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Batch script control</title><link>https://forums.millisecond.com/Topic36865.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Is it possible to stop a batch script after a particular response is given in one of the scripts it calls?&lt;br/&gt;&lt;br/&gt;For example, in the following batch script, if a particular response (i.e., "0") is given to a question in script1, then the batch should stop and not run script2 and script3.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;batch&amp;gt;&lt;br/&gt;/ file="script1.iqx"&lt;br/&gt;/ file="script2.iqx"&lt;br/&gt;/ file="script3.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 11 Feb 2025 14:27:37 GMT</pubDate><dc:creator>raven</dc:creator></item><item><title>RE: Batch script control</title><link>https://forums.millisecond.com/Topic36868.aspx</link><description>&lt;blockquote data-id="36867" class="if-quote-wrapper" unselectable="on" data-guid="1739284037626" contenteditable="false" id="if_insertedNode_1739284037375"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36867" 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="36867" 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="36867" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 2/11/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36867"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36865" class="if-quote-wrapper" unselectable="on" data-guid="1739284037626" contenteditable="false" id="if_insertedNode_1739277438323"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36865" 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="36865" 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="36865" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;raven - 2/11/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36865"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Is it possible to stop a batch script after a particular response is given in one of the scripts it calls?&lt;br/&gt;&lt;br/&gt;For example, in the following batch script, if a particular response (i.e., "0") is given to a question in script1, then the batch should stop and not run script2 and script3.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;batch&amp;gt;&lt;br/&gt;/ file="script1.iqx"&lt;br/&gt;/ file="script2.iqx"&lt;br/&gt;/ file="script3.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36865"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You use the script.abort() function in script 1 to do this.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36867"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Perfect, thanks Dave! &lt;span id="if_insertedNode_1739284051434"&gt;:)&lt;/span&gt;</description><pubDate>Tue, 11 Feb 2025 14:27:37 GMT</pubDate><dc:creator>raven</dc:creator></item><item><title>RE: Batch script control</title><link>https://forums.millisecond.com/Topic36867.aspx</link><description>&lt;blockquote data-id="36865" class="if-quote-wrapper" unselectable="on" data-guid="1739277440064" contenteditable="false" id="if_insertedNode_1739277438323"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36865" 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="36865" 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="36865" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;raven - 2/11/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36865"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Is it possible to stop a batch script after a particular response is given in one of the scripts it calls?&lt;br/&gt;&lt;br/&gt;For example, in the following batch script, if a particular response (i.e., "0") is given to a question in script1, then the batch should stop and not run script2 and script3.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;batch&amp;gt;&lt;br/&gt;/ file="script1.iqx"&lt;br/&gt;/ file="script2.iqx"&lt;br/&gt;/ file="script3.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36865"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You use the script.abort() function in script 1 to do this.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 11 Feb 2025 12:38:19 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>