<?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: VBScript and .bat files not working in QEMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345818#M127915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should write at the beginning and end of your script flag file on your serveur.&lt;/P&gt;&lt;P&gt;You should also try to launch an atomic script with only writing on your serveur what you want to launch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you'll find how to fix your problem !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 15:50:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-14T15:50:51Z</dc:date>
    <item>
      <title>VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345813#M127910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a .vbs file that runs fine when double clicked but wont run from 'external programs' in Publisher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.vbs file is at;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried the following statements in the command line;&lt;/P&gt;&lt;P&gt;1.) C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs&lt;/P&gt;&lt;P&gt;2.) C:\Windows\SysWOW64\cscript.exe &lt;/P&gt;&lt;P&gt;C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs&lt;/P&gt;&lt;P&gt;3.) &lt;SPAN style="font-size: 10.5pt;"&gt;C:\Windows\System32\cscript.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs&lt;/P&gt;&lt;P&gt;4.) C:\Windows\SysWOW64\cscript.exe &lt;/P&gt;&lt;P&gt;"C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs"&lt;/P&gt;&lt;P&gt;5.) &lt;SPAN style="font-size: 10.5pt;"&gt;C:\Windows\System32\cscript.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.vbs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried it with .bat files where the .bat file works if i double click it so tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.) C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.bat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of these just give me a yellow warning sign on the qemc but ultimately don't do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QEMC Program.bmp" class="jive-image-thumbnail jive-image" height="139" onclick="" src="https://community.qlik.com/legacyfs/online/14034_QEMC+Program.bmp" width="762" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i missing something important?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked and the cScript.exe is in both those locations but it still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 09:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345813#M127910</guid>
      <dc:creator />
      <dc:date>2012-05-10T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345814#M127911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen if cscript is launched ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345814#M127911</guid>
      <dc:creator />
      <dc:date>2012-08-08T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345815#M127912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having checked the log files, it seems it cannot find the folder for some reason;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 14:27:27.2809281&lt;/TD&gt;&lt;TD&gt;Information&lt;/TD&gt;&lt;TD&gt;Executing commandline: "\\Qlikview01\QLIKVIEW\vbs&amp;nbsp; Scripts\Daily Report Archive Script\Publisher Daily Report.bat" in folder "\\Qlikview01\QLIKVIEW".&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 14:27:27.5461264&lt;/TD&gt;&lt;TD&gt;Error&lt;/TD&gt;&lt;TD&gt;Exception=System.ComponentModel.Win32Exception: The system cannot find the file specified&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it's only looking in "\\Qlikview01\QLIKVIEW" when the .bat file shows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"cscript.exe "\\Qlikview01\QLIKVIEW\vbs Scripts\Daily Report Archive Script\Publisher Daily Report.vbs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read about the issue with Qlikview hosting on multiple servers (&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/53608"&gt;http://community.qlik.com/thread/53608&lt;/A&gt;) so have amended to show full UNC path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try and run the .bat file from a different folder (with the script updated) i still get an error;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 09:38:23.8991948&lt;/TD&gt;&lt;TD&gt;Information&lt;/TD&gt;&lt;TD&gt;Executing commandline: "\\Qlikview01\QLIKVIEW\Automated_Reports\Scripts\Daily&amp;nbsp; Report Archive Script\Publisher Daily Report.bat" in folder "\\Qlikview01\QLIKVIEW\Automated_Reports\Scripts".&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 09:38:23.9303948&lt;/TD&gt;&lt;TD&gt;Error&lt;/TD&gt;&lt;TD&gt;Exception=System.ComponentModel.Win32Exception: The system cannot find the file specified&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the Information Line always chooses the wrong folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 13:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345815#M127912</guid>
      <dc:creator />
      <dc:date>2012-08-14T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345816#M127913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you try to launch a .bat file, it will allway fail until you specify the cmd command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a .bat or a .vbs file, are not really a program, that's why you have to tell the interpreter used with this kind of files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try c:\windows\systme32\cmd.exe "C:\QLIKVIEW\Automated_Reports\Reports\Daily Report\Daily Report Archive Script\Publisher Daily Report.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you'll have to face difficulty with the space in the name of your file, try to use dir /x to know the name of you file or directory dos like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it'll help you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 14:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345816#M127913</guid>
      <dc:creator />
      <dc:date>2012-08-14T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345817#M127914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can now launch the bat file, however, it's not causing the .vbs file to perform it's task and it's showing a warning sign after execution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log file now shows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 16:33:41.3911758&lt;/TD&gt;&lt;TD&gt;Information&lt;/TD&gt;&lt;TD&gt;Executing commandline: "C:\WINDOWS\system32\cscript.exe&amp;nbsp; "\\Qlikview01\QLIKVIEW\vbs Scripts\Daily Report Archive Script\Publisher Daily Report.bat"" in folder "C:\WINDOWS\system32".&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 16:33:41.5627747&lt;/TD&gt;&lt;TD&gt;Warning&lt;/TD&gt;&lt;TD&gt;Process exited with non zero exit code: 1 at 14/08/2012 16:33:41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 16:33:41.5627747&lt;/TD&gt;&lt;TD&gt;Information&lt;/TD&gt;&lt;TD&gt;Process exited with exit code: 1 at 14/08/2012 16:33:41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/08/2012 16:33:41.5783746&lt;/TD&gt;&lt;TD&gt;Warning&lt;/TD&gt;&lt;TD&gt;The task "Daily Report Archive" finished with warnings. WarningCount=1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way i can check where it's not working? If i run the .bat file without Publisher it performs as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 15:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345817#M127914</guid>
      <dc:creator />
      <dc:date>2012-08-14T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345818#M127915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should write at the beginning and end of your script flag file on your serveur.&lt;/P&gt;&lt;P&gt;You should also try to launch an atomic script with only writing on your serveur what you want to launch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you'll find how to fix your problem !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 15:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345818#M127915</guid>
      <dc:creator />
      <dc:date>2012-08-14T15:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345819#M127916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These steps work , you can adapt them&amp;nbsp; to watch how your process work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make two files :&lt;/P&gt;&lt;P&gt;One ".bat" named VBS.bat on c:\&lt;/P&gt;&lt;P&gt;One ".vbs" named TXT.vbs on c:\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content of VBS.bat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:Create_TXT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c:\TXT.vbs&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content of TXT.vbs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dim filesys, filetxt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set filesys=CreateObject("Scripting.FileSystemObject")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set filetxt=filesys.CreateTextFile("c:\File.txt", True)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;filetxt.WriteLine("The message you wants")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;filetxt.Close&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an external task on your publisher lauching the following statement:&lt;/P&gt;&lt;P&gt;cmd.exe /C "c:\VBS.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will see that launching the task, create the file with your text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important : When you try to encapsulate the lauching of a QVW application by VBS , be sure that the user of the QlikView's&amp;nbsp; services&amp;nbsp; have a named cal , and you've launched one time QlikView to chose the interface language !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i'll help you to fix your bug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345819#M127916</guid>
      <dc:creator />
      <dc:date>2012-09-03T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript and .bat files not working in QEMC</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345820#M127917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem. Did you find a solution ?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 09:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-and-bat-files-not-working-in-QEMC/m-p/345820#M127917</guid>
      <dc:creator />
      <dc:date>2012-11-23T09:56:22Z</dc:date>
    </item>
  </channel>
</rss>

