<?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: Rename data table from a subsection of the file path. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689432#M87534</link>
    <description>&lt;P&gt;This works great, thank you&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 12:08:43 GMT</pubDate>
    <dc:creator>MedianRooster10</dc:creator>
    <dc:date>2023-10-23T12:08:43Z</dc:date>
    <item>
      <title>Rename data table from a subsection of the file path.</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689392#M87528</link>
      <description>&lt;P&gt;I use Pick File() to retrieve the file path. From this file path I want to take a subsection and use this as the name for the data table produced by the script.&lt;/P&gt;&lt;P&gt;For example the file path is&amp;nbsp;C:\Documents\Plot_Losses\DUT2\25C\filename and I want to call the data table 25C.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use Set Name to name the data table as the whole file path but not a subsection.&lt;/P&gt;&lt;P&gt;How can I script this for when the temperature folder changes the name of the data table changes too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:30:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689392#M87528</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-10-23T10:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data table from a subsection of the file path.</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689408#M87530</link>
      <description>&lt;P&gt;Which part do you want to use? Is it always the folder name before filename?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:49:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689408#M87530</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-23T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data table from a subsection of the file path.</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689422#M87532</link>
      <description>&lt;P&gt;Yes its always the folder before the filename&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 11:39:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689422#M87532</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-10-23T11:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data table from a subsection of the file path.</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689427#M87533</link>
      <description>&lt;P&gt;Then you can most likely use &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww8107571" target="_blank" rel="noopener"&gt;Word()&lt;/A&gt; with -2 as the index (searches from the end) (-1 would be the filename)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

filepath = "C:\Documents\Plot_Losses\DUT2\25C\filename.jmp";
foldername = Word(-2, filepath, "\");
show(foldername); // foldername = "25C";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Oct 2023 11:42:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689427#M87533</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-23T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data table from a subsection of the file path.</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689432#M87534</link>
      <description>&lt;P&gt;This works great, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 12:08:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-data-table-from-a-subsection-of-the-file-path/m-p/689432#M87534</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-10-23T12:08:43Z</dc:date>
    </item>
  </channel>
</rss>

