<?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 Create new folder in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309751#M114376</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 need to create a new folder in the script to store my QVD-files.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2011 11:51:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-10T11:51:45Z</dc:date>
    <item>
      <title>Create new folder in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309751#M114376</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 need to create a new folder in the script to store my QVD-files.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 11:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309751#M114376</guid>
      <dc:creator />
      <dc:date>2011-11-10T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Create new folder in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309752#M114377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;as far as I understand you try this to create a new directory within a load-script before storing some qvd-files into it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C mkdir C:\mydir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309752#M114377</guid>
      <dc:creator />
      <dc:date>2011-11-10T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create new folder in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309753#M114378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could create a macro that you call from your loadscript.&lt;/P&gt;&lt;P&gt;Macro-code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Function CreateFolder(Path, Name) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Dim objFSO, Folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set FSO = CreateObject("Scripting.FileSystemObject")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set Folder = FSO.CreateFolder(Path &amp;amp; "\" &amp;amp; Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set FSO = Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set Folder = Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call this function from your loadscript with,&lt;/P&gt;&lt;P&gt;LET Execute = CreateFolder('C:\Temp', 'New');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that you allow system access in your macro.&lt;/P&gt;&lt;P&gt;I know Publisher has had a bit of problems executing macros upon reloads, bit it is worth a try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;Make sure the user running publisher has file system access and you might need to enable that the server are allowed to execute unsafe macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 13:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-folder-in-script/m-p/309753#M114378</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2011-11-10T13:02:39Z</dc:date>
    </item>
  </channel>
</rss>

