<?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 Pick File Question in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268375#M52258</link>
    <description>&lt;P&gt;This is my first time posting here so I apologize if I'm posting in the wrong place. I wondered if anyone can help with the following. Is it possible to get only the file path part from the Pick File function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I write(names); I get {"/C:/Users/MT/file1.txt",&amp;nbsp;"/C:/Users/MT/file1.txt"} but I would like just the path C:/Users/MT/ and to be associate that with a variable e.g. file_path = "C:/Users/MT/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;names = Pick File(
"Select Data File",
"$DESKTOP",
{"Text Files|txt;csv", "All Files|*"},
1,
0,
"Data",
multiple
);&lt;/PRE&gt;&lt;P&gt;the&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 17:21:44 GMT</pubDate>
    <dc:creator>marktaylor</dc:creator>
    <dc:date>2020-05-22T17:21:44Z</dc:date>
    <item>
      <title>Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268375#M52258</link>
      <description>&lt;P&gt;This is my first time posting here so I apologize if I'm posting in the wrong place. I wondered if anyone can help with the following. Is it possible to get only the file path part from the Pick File function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I write(names); I get {"/C:/Users/MT/file1.txt",&amp;nbsp;"/C:/Users/MT/file1.txt"} but I would like just the path C:/Users/MT/ and to be associate that with a variable e.g. file_path = "C:/Users/MT/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;names = Pick File(
"Select Data File",
"$DESKTOP",
{"Text Files|txt;csv", "All Files|*"},
1,
0,
"Data",
multiple
);&lt;/PRE&gt;&lt;P&gt;the&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 17:21:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268375#M52258</guid>
      <dc:creator>marktaylor</dc:creator>
      <dc:date>2020-05-22T17:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268391#M52259</link>
      <description>&lt;P&gt;You could use the Pick Directory() function instead. Then use Files In Directory() function with the returned path to get the list of files.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 17:32:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268391#M52259</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-05-22T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268450#M52263</link>
      <description>&lt;P&gt;I like the solution suggested by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;best.&amp;nbsp; But here is another possibility that uses character functions to extract the file path.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path = Substr( names[1], 1, Contains( names[1], "/", -1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 May 2020 18:15:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268450#M52263</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2020-05-22T18:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268556#M52271</link>
      <description>Thanks Wendy, that works except for there's a leading slash so I get "/C:/Users/MT/" instead of "C:/Users/MT/".&lt;BR /&gt;I'm not sure where this leading / is coming from or how to get rid of it</description>
      <pubDate>Fri, 22 May 2020 20:23:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268556#M52271</guid>
      <dc:creator>marktaylor</dc:creator>
      <dc:date>2020-05-22T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268557#M52272</link>
      <description>Thanks Mark. Much appreciated</description>
      <pubDate>Fri, 22 May 2020 20:24:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268557#M52272</guid>
      <dc:creator>marktaylor</dc:creator>
      <dc:date>2020-05-22T20:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268560#M52274</link>
      <description>&lt;P&gt;In the Substr() function, just change the starting location to 2 and subtract one from the count.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path = Substr( names[1], 2, Contains( names[1], "/", -1 ) - 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 May 2020 20:29:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268560#M52274</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2020-05-22T20:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pick File Question</title>
      <link>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268561#M52275</link>
      <description>Thank you so much Wendy. That worked just great.</description>
      <pubDate>Fri, 22 May 2020 20:33:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pick-File-Question/m-p/268561#M52275</guid>
      <dc:creator>marktaylor</dc:creator>
      <dc:date>2020-05-22T20:33:10Z</dc:date>
    </item>
  </channel>
</rss>

