<?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 Adding extension to file name from path in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-extension-to-file-name-from-path/m-p/667530#M85559</link>
    <description>&lt;P&gt;I've never worked with file paths before.&lt;/P&gt;&lt;P&gt;I have multiple columns that determine the name of certain subfolders in a location on my computer.&lt;/P&gt;&lt;P&gt;I created a column that stitches multiple values from columns, to generate the appropriate file path as such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"C:\MainFolder\Subfolder1\Subfolder2\" || :Subfolder3 || "\" || :Subfolder4 || "\" || :FileName&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The only issue that remains is adding the appropriate extension to the end of the file name (.abc or whatever it may be).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to match the file name that I have in my columns, to the file name on my computer, and have it auto-complete by adding the extension at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably not the correct technique to search for a file, so having a more complex code will be welcomed as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 17:40:55 GMT</pubDate>
    <dc:creator>JojoRadio</dc:creator>
    <dc:date>2023-08-11T17:40:55Z</dc:date>
    <item>
      <title>Adding extension to file name from path</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-extension-to-file-name-from-path/m-p/667530#M85559</link>
      <description>&lt;P&gt;I've never worked with file paths before.&lt;/P&gt;&lt;P&gt;I have multiple columns that determine the name of certain subfolders in a location on my computer.&lt;/P&gt;&lt;P&gt;I created a column that stitches multiple values from columns, to generate the appropriate file path as such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"C:\MainFolder\Subfolder1\Subfolder2\" || :Subfolder3 || "\" || :Subfolder4 || "\" || :FileName&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The only issue that remains is adding the appropriate extension to the end of the file name (.abc or whatever it may be).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to match the file name that I have in my columns, to the file name on my computer, and have it auto-complete by adding the extension at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably not the correct technique to search for a file, so having a more complex code will be welcomed as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 17:40:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-extension-to-file-name-from-path/m-p/667530#M85559</guid>
      <dc:creator>JojoRadio</dc:creator>
      <dc:date>2023-08-11T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding extension to file name from path</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-extension-to-file-name-from-path/m-p/667542#M85561</link>
      <description>&lt;P&gt;You canuse &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/file-functions.shtml?os=win&amp;amp;source=application#ww4951479" target="_blank" rel="noopener"&gt;Files In Directory()&lt;/A&gt; to get list of files in the directory and then loop over that list until you find a match (if there can only be one match, you can use &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/conditional-and-logical-functions.shtml?os=win&amp;amp;source=application#ww2515978" target="_blank" rel="noopener"&gt;Break()&lt;/A&gt; to break out of the loop when the match is found). In simple cases to look for a match you could use for example &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww2489516" target="_blank" rel="noopener"&gt;Starts With()&lt;/A&gt; function and if the matching has to be more complicated, you could use &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww4813286" target="_blank" rel="noopener"&gt;Regex()&lt;/A&gt;. See Scripting Index for more examples of these functions.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 18:05:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-extension-to-file-name-from-path/m-p/667542#M85561</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-11T18:05:34Z</dc:date>
    </item>
  </channel>
</rss>

