<?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: Folder Creation in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442256#M4303</link>
    <description>&lt;P&gt;Hmmm. That's strange. Do you want to built a .bat file with the command and execute that via the Run Command tool instead? I've tested with the below and it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mkdir "C:\tmp\New folder"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run-command.png" style="width: 712px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/70671i1917CAA987754A2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="run-command.png" alt="run-command.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 09:45:05 GMT</pubDate>
    <dc:creator>MichalM</dc:creator>
    <dc:date>2019-07-23T09:45:05Z</dc:date>
    <item>
      <title>Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/441689#M4294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create folders with Space in the folder name using Alteryx? I am able to create folders using Run Command tool but the folder names can't have spaces between them.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 08:56:38 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/441689#M4294</guid>
      <dc:creator>navnidhsinghsahni</dc:creator>
      <dc:date>2019-07-22T08:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/441692#M4295</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/79981"&gt;@navnidhsinghsahni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just need to make sure that you wrap the name in quotes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mkdir "Folder Name"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 09:17:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/441692#M4295</guid>
      <dc:creator>MichalM</dc:creator>
      <dc:date>2019-07-22T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442245#M4302</link>
      <description>&lt;P&gt;Hi MichalM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter a command say:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"mkdir"+"C:/Users/Desktop/New Folder"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It creates a folder named "New" at the destination path and the run command returns an error:&lt;/P&gt;&lt;P&gt;"The external program "..." returned an error code: 1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am unable to create folders which have spaces in their names.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:23:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442245#M4302</guid>
      <dc:creator>navnidhsinghsahni</dc:creator>
      <dc:date>2019-07-23T09:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442256#M4303</link>
      <description>&lt;P&gt;Hmmm. That's strange. Do you want to built a .bat file with the command and execute that via the Run Command tool instead? I've tested with the below and it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mkdir "C:\tmp\New folder"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run-command.png" style="width: 712px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/70671i1917CAA987754A2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="run-command.png" alt="run-command.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:45:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442256#M4303</guid>
      <dc:creator>MichalM</dc:creator>
      <dc:date>2019-07-23T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442335#M4306</link>
      <description>&lt;P&gt;Yeah, running a pre-defined bat file via alteryx works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to overwrite a bat file with a folder name(Text Input) from the Alteryx Workflow.&lt;/P&gt;&lt;P&gt;I am doing that by creating a field called Command and feeding it to the Run Command Tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: "mkdir"+"Final Path"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It returns the same error&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:58:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442335#M4306</guid>
      <dc:creator>navnidhsinghsahni</dc:creator>
      <dc:date>2019-07-23T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442342#M4307</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/79981"&gt;@navnidhsinghsahni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use a batch macro to pass the directory name into the Run Command tool as described by&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/2387"&gt;@patrick_digan&lt;/a&gt;&amp;nbsp; &lt;STRONG&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Dynamic-Create-File-Directory/td-p/946/page/2" target="_self"&gt;here&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is an example he's built out. Let me know if it addresses your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 13:11:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442342#M4307</guid>
      <dc:creator>MichalM</dc:creator>
      <dc:date>2019-07-23T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442800#M4320</link>
      <description>&lt;P&gt;This batch macro works perfectly. I am now successfully able to create a new folder with spaces between the names.&lt;/P&gt;&lt;P&gt;I figured out the problem I was facing. I was trying to create folders in the Shared Drive for a client.&lt;/P&gt;&lt;P&gt;So, there were some issues with the bat file but when I ran in the C:\ Drive, it worked perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your valuable suggestions!!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 08:54:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/442800#M4320</guid>
      <dc:creator>navnidhsinghsahni</dc:creator>
      <dc:date>2019-07-24T08:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608375#M6882</link>
      <description>&lt;P&gt;Hi, so are you not able to create folders in a shared network folder? If so I'm in trouble. I want to create my app in their private alteryx server and create folders for my outputs as part of the workflow based on time of the run.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:36:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608375#M6882</guid>
      <dc:creator>sngoh55</dc:creator>
      <dc:date>2020-07-23T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608378#M6883</link>
      <description>&lt;P&gt;Depending on what your output file is, you could use the Render tool to dynamically create a folder for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the file format you'd like to write?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:44:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608378#M6883</guid>
      <dc:creator>MichalM</dc:creator>
      <dc:date>2020-07-23T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608379#M6884</link>
      <description>&lt;P class="lia-align-left"&gt;I'm just looking to output xlsx and csv files in the folder. I understand I'll need to use the block tool to create the folders first but not sure what else to do.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:48:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608379#M6884</guid>
      <dc:creator>sngoh55</dc:creator>
      <dc:date>2020-07-23T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608383#M6885</link>
      <description>&lt;P&gt;To clarify, I'm wanting to run this as an analytic app, so I'm wondering if this .bat method with the c:/temp would even work to create folders in a network folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can currently output fine in the network folder.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:55:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/608383#M6885</guid>
      <dc:creator>sngoh55</dc:creator>
      <dc:date>2020-07-23T06:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/724454#M8403</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/19414"&gt;@MichalM&lt;/a&gt;&amp;nbsp; Thanks for the Macro. It is working fine for me as well. But there is small glitch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be running this workflow multiple time in a day and every time I want workflow to save latest version of files, i-e, new folder should replace the older folder. Currently its throwing an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Error: create folders (23): Record #1: Tool #1: The external program "cmd.exe" returned an error code: 1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 06:18:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/724454#M8403</guid>
      <dc:creator>mohit9garg</dc:creator>
      <dc:date>2021-02-27T06:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Creation</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/724458#M8404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/159794"&gt;@mohit9garg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you get this error because those folders already exist. Maybe you need to delete them first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The usual route would be using the rmdir command but it wouldn't work for you as you have nested directories in this folder. At the same time command like would ask you if you are sure that you want to delete this before running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To overcome this you need to use /Q - it will click yes automatically and /S will inform that you want to remove all subfolders as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"rmdir /Q /S " + [Folder]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe your folder should output a list of folders that you created and as a first step of the workflow you should remove all the old data first.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 07:41:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Folder-Creation/m-p/724458#M8404</guid>
      <dc:creator>Emil_Kos</dc:creator>
      <dc:date>2021-02-27T07:41:23Z</dc:date>
    </item>
  </channel>
</rss>

