<?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: Storing folder directory from user prompted file selection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736849#M91774</link>
    <description>&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 16:33:31 GMT</pubDate>
    <dc:creator>vibhu7668</dc:creator>
    <dc:date>2024-03-20T16:33:31Z</dc:date>
    <item>
      <title>Storing folder directory from user prompted file selection</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736837#M91771</link>
      <description>&lt;P&gt;This code not working. Please suggest how to modify it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file_name = Pick File ( "Select a file to open" ); // this line of code is working&lt;BR /&gt;folder_path = file_name &amp;lt;&amp;lt; Get Directory() ; // this line of code not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:06:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736837#M91771</guid>
      <dc:creator>vibhu7668</dc:creator>
      <dc:date>2024-03-20T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Storing folder directory from user prompted file selection</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736847#M91772</link>
      <description>&lt;P&gt;try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
folder_path = substr(file_name, 1, length( file_name)- 
	length(word(-1,file_name,"\/")))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:22:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736847#M91772</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-20T16:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Storing folder directory from user prompted file selection</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736849#M91774</link>
      <description>&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/736849#M91774</guid>
      <dc:creator>vibhu7668</dc:creator>
      <dc:date>2024-03-20T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Storing folder directory from user prompted file selection</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/737438#M91856</link>
      <description>&lt;P&gt;I like doing this using &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww8107571" target="_blank" rel="noopener"&gt;Word()&lt;/A&gt; with matrix to define the range of return (Word supports negative index)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

filepath = Convert File Path("$SAMPLE_DATA/Big Class.jmp", windows);

directory = Word([1 -2], filepath, "/\") || "\";

Show(filepath, directory);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;If you don't need to have "/" or "\" at the end of your folder path, you can drop the &lt;CODE class=" language-jsl"&gt;|| "\"&lt;/CODE&gt; part.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 22:04:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-folder-directory-from-user-prompted-file-selection/m-p/737438#M91856</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-21T22:04:16Z</dc:date>
    </item>
  </channel>
</rss>

