<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Add two commands in a single trigger]]></title><description><![CDATA[<p dir="auto">Is it possible to add two commands in a single trigger? For example: one command to close all open windows and another to shut down Windows.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/3248/add-two-commands-in-a-single-trigger</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 15:45:13 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/3248.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 May 2025 20:53:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Add two commands in a single trigger on Thu, 29 May 2025 21:10:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/carlos-junior" aria-label="Profile: Carlos-Junior">@<bdi>Carlos-Junior</bdi></a>, you could create a script with two commands in it like this:</p>
<pre><code>taskkill /f /fi "USERNAME eq %USERNAME%" /fi "WINDOWTITLE ne"
shutdown /s /f /t 0
</code></pre>
<p dir="auto">Then your command would run that script with a command like this:</p>
<pre><code>c:\scripts\close_all_shutdown.bat
</code></pre>
<p dir="auto">If you don't want to create a script, you can generally run multiple commands with one command line by separating the commands with &amp;&amp; like this:</p>
<pre><code>taskkill /f /fi "USERNAME eq %USERNAME%" /fi "WINDOWTITLE ne" &amp;&amp; shutdown /s /f /t 0
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/8597</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8597</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 29 May 2025 21:10:53 GMT</pubDate></item></channel></rss>