<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to run a command-line command from QMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380889#M1274783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, darned if that didn't work, Bill!&amp;nbsp; Thanx!&amp;nbsp;&amp;nbsp; The funny thing was, that was where I was heading all along (putting the commands in a .bat file) but I wanted to check the syntax from the tool's perspective first.&amp;nbsp; Should have just shotgunned it in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, can you tell me why it works from a script but not from the tool?&amp;nbsp; The code in the script is identical to what I had in the box, just cut and pasted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version, for prosterity's sake, is 11.0.11154.0, 64-bit and yes, I do have Publisher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 22:30:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-27T22:30:23Z</dc:date>
    <item>
      <title>How to run a command-line command from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380887#M1274780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks, I hope you'll forgive me if this is answered somewhere, but in searching the docs and the forums I've come up empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed a "Supporting Tasks" area under the System tab and thought I might be able to bring some of my batch jobs under the External Programs folder, which would make my life a little easier since I would have all my jobs in one place, the QMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something simple for the Command line statement: &lt;/P&gt;&lt;P&gt;copy "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work.qvw.log" "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work2.qvw.log"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine from the command line, but when I execute this job, it throws an error and quits.&amp;nbsp; Log follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Starting task 'SD Ticket Copy'. Id:8e978564-b778-4900-8f2b-513aedef3e50. Triggered by 'ManualStartTrigger'. Id:00000001-0002-0003-0405-0607080a0b0c&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Entering Task Execution. &lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: ClusterID=1&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: QDSID=8f6ce6a1-7e0a-2e51-243c-b8b98852e947&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: TaskID=8e978564-b778-4900-8f2b-513aedef3e50&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: MaxRunTime=1.00:00:00&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Max attempts:1&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Current Attempt=0&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Task Dependencies are OK&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Executing copy "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work.qvw.log" "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work2.qvw.log"&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Executing commandline: "copy "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work.qvw.log" "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work2.qvw.log"" in folder "C:\Windows\system32".&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error: Exception=System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error:&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error:&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error:&amp;nbsp;&amp;nbsp;&amp;nbsp; at SolutionGlobal.DOSExecute.ExecuteCommand(ILogBucket i_LogBucket, String i_Command)&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: The process didn't start&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error: The task "SD Ticket Copy" failed. Exception:&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error: QDSMain.Exceptions.UnableToStartProcessException: The process didn't start.&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error:&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.ExternalProgramTask.Execute(TaskResult taskResult)&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Error:&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Task Execute Duration=00:00:00&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: TaskResult.status=Finished&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Notifying all triggers of new state:FinishedWithErrors&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Notifying all triggers of new state:FinishedWithErrors - completed&lt;/P&gt;&lt;P style="margin: 0px 0px 6px; font-size: 11px; padding-left: 30px;"&gt;(2012-08-24 17:01:43) Information: Saving Task Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I'm kind of baffled, since this works from the command line manually, and these directories are where everything else lives.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380887#M1274780</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a command-line command from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380888#M1274781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick are you using copy "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work.qvw.log" "C:\ProgramData\QlikTech\SourceDocuments\Book of Work\Book of Work2.qvw.log" in the commandline box? You might setup a .bat file and then just try to run that. It would be helpful if you would put version and if you have publisher license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 22:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380888#M1274781</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2012-08-27T22:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a command-line command from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380889#M1274783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, darned if that didn't work, Bill!&amp;nbsp; Thanx!&amp;nbsp;&amp;nbsp; The funny thing was, that was where I was heading all along (putting the commands in a .bat file) but I wanted to check the syntax from the tool's perspective first.&amp;nbsp; Should have just shotgunned it in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, can you tell me why it works from a script but not from the tool?&amp;nbsp; The code in the script is identical to what I had in the box, just cut and pasted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version, for prosterity's sake, is 11.0.11154.0, 64-bit and yes, I do have Publisher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 22:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380889#M1274783</guid>
      <dc:creator />
      <dc:date>2012-08-27T22:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a command-line command from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380890#M1274786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hate to say it but I am not really sure. I have always do it using a .bat file because it was easier for me to make changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try (if you want to play with it) starting the command with&amp;nbsp; Cmd "c:\test.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 14:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380890#M1274786</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2012-08-29T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a command-line command from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380891#M1274789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanx for the insite, Bill.&amp;nbsp; I guess this will be one of those cases where I just paraphrase my father and say, 'Because the software says so.&amp;nbsp; That's why." &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 17:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-command-line-command-from-QMC/m-p/380891#M1274789</guid>
      <dc:creator />
      <dc:date>2012-08-29T17:21:33Z</dc:date>
    </item>
  </channel>
</rss>

