<?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 How to create a new directory/folder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3857#M3857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for me in JMP 9 on Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;baseDir = "C:\temp\";&lt;BR /&gt;dir = baseDir || Substitute(MDYHMS(Today()), "/", "-", ":", ".");&lt;BR /&gt;&lt;BR /&gt;CreateDirectory(dir);&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 15:26:13 GMT</pubDate>
    <dc:creator>jschroedl</dc:creator>
    <dc:date>2011-10-11T15:26:13Z</dc:date>
    <item>
      <title>How to create a new directory/folder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3856#M3856</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;When i run my JMP script it generates a lot of different graph that I save as PNG pictures. I would like JMP to each time I run the script to create a folder named with the date and time that the script is run and save the PNG files in that folder. I have looked around, but could not find anybody doing this from JMP script. Can it be done? If not, is there a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarrild&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:00:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3856#M3856</guid>
      <dc:creator>tarrild</dc:creator>
      <dc:date>2011-10-11T15:00:32Z</dc:date>
    </item>
    <item>
      <title>How to create a new directory/folder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3857#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for me in JMP 9 on Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;baseDir = "C:\temp\";&lt;BR /&gt;dir = baseDir || Substitute(MDYHMS(Today()), "/", "-", ":", ".");&lt;BR /&gt;&lt;BR /&gt;CreateDirectory(dir);&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:26:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3857#M3857</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2011-10-11T15:26:13Z</dc:date>
    </item>
    <item>
      <title>How to create a new directory/folder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3858#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant !!!! Just what I needed &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.jmp.com/4.5.5/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:31:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3858#M3858</guid>
      <dc:creator>tarrild</dc:creator>
      <dc:date>2011-10-11T15:31:05Z</dc:date>
    </item>
    <item>
      <title>How to create a new directory/folder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3859#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&amp;nbsp; I'll also add a method for JMP 8 users: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;kernel32 = LoadDLL("kernel32");&lt;BR /&gt;kernel32 &amp;lt;&amp;lt; DeclareFunction( "CreateDirectoryW", &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Convention( STDCALL ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Alias( "CreateDirectory" ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Arg( UnicodeString(260), "Path"),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// The directory to create&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Arg( IntPtr, ""),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Security descriptor. 0 = default&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Returns( int32 )&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;baseDir = "C:\temp\";&lt;BR /&gt;dir = baseDir || Substitute(MDYHMS(Today()), "/", "-", ":", ".");&lt;BR /&gt;&lt;BR /&gt;kernel32 &amp;lt;&amp;lt; CreateDirectory(dir,0);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:38:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-new-directory-folder/m-p/3859#M3859</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2011-10-11T15:38:24Z</dc:date>
    </item>
  </channel>
</rss>

