<?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: Get list of files modified after a certain date without a for loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105091#M38856</link>
    <description>&lt;P&gt;See if this helps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// requires JMP 14

// on a virtual machine, the network drive F will process
// around 50K files per minute this way

mfi=Multiple File Import(
	&amp;lt;&amp;lt;Set Folder( "F:\MandelbrotTrace\pics" ),
	&amp;lt;&amp;lt;Set Name Filter( "*.jpg;" ),
	&amp;lt;&amp;lt;Set Name Enable( 1 ),
	&amp;lt;&amp;lt;Set Size Filter( {50000,100000} ),
	&amp;lt;&amp;lt;Set Size Enable( 1 ),
	&amp;lt;&amp;lt;Set Date Filter( {2019-01-01, 2019-01-03} ),
	&amp;lt;&amp;lt;Set Date Enable( 1 )
); // note: no import is performed with the &amp;lt;&amp;lt;import method.

// the 3 filters can be respecified for nearly free
// as long as the folder isn't changed and mfi object
// isn't closed.

mfi&amp;lt;&amp;lt;Set Size Filter( {50000,300000} );
mfi&amp;lt;&amp;lt;Set Date Filter( {informat("2019-01-02T08:41:32"), informat("2019-01-02T08:43:52")} );

// make a table of selected files

dtFiltered = mfi&amp;lt;&amp;lt;showSelection();

// make a table of rejected files 

dtUnFiltered = mfi&amp;lt;&amp;lt;showRejection();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50K/minute for this configuration of a network" style="width: 326px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15064iEE5CF6E66E062E5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="50K/minute for this configuration of a network" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;50K/minute for this configuration of a network&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Columns include filter values" style="width: 543px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15065iCFC9281F7C380D02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Columns include filter values" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Columns include filter values&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 11:43:37 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2019-01-09T11:43:37Z</dc:date>
    <item>
      <title>Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104814#M38829</link>
      <description>&lt;P&gt;I'm trying to find all the files in a directory modified after a specific date.&amp;nbsp; The directory is a network drive with a million files in it.&amp;nbsp; So if I try to simply do a for loop with LastModificationDate(), it takes roughly six hours.&amp;nbsp; Anyone every run into something like this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:08:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104814#M38829</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-01-08T20:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104818#M38831</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Have you tried using Last Modification Date() in column formula in a private data table ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:18:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104818#M38831</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-08T20:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104819#M38832</link>
      <description>It's not the for loop overhead.  It's the network drive ping. Every call to it seems to take more than a second.</description>
      <pubDate>Tue, 08 Jan 2019 20:20:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/104819#M38832</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-01-08T20:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105079#M38848</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;perhaps you can try using the &lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Files In Directory ()&lt;/SPAN&gt;function as in the first section of the script by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt; in this link: &lt;A href="https://community.jmp.com/t5/Uncharted/Files-In-Directory/ba-p/21232" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Files-In-Directory/ba-p/21232&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;alternatively, consider linking to R and using the following:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stat.ethz.ch/R-manual/R-devel/library/base/html/list.files.html" target="_blank"&gt;https://stat.ethz.ch/R-manual/R-devel/library/base/html/list.files.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this is in the right direction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:27:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105079#M38848</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-01-09T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105091#M38856</link>
      <description>&lt;P&gt;See if this helps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// requires JMP 14

// on a virtual machine, the network drive F will process
// around 50K files per minute this way

mfi=Multiple File Import(
	&amp;lt;&amp;lt;Set Folder( "F:\MandelbrotTrace\pics" ),
	&amp;lt;&amp;lt;Set Name Filter( "*.jpg;" ),
	&amp;lt;&amp;lt;Set Name Enable( 1 ),
	&amp;lt;&amp;lt;Set Size Filter( {50000,100000} ),
	&amp;lt;&amp;lt;Set Size Enable( 1 ),
	&amp;lt;&amp;lt;Set Date Filter( {2019-01-01, 2019-01-03} ),
	&amp;lt;&amp;lt;Set Date Enable( 1 )
); // note: no import is performed with the &amp;lt;&amp;lt;import method.

// the 3 filters can be respecified for nearly free
// as long as the folder isn't changed and mfi object
// isn't closed.

mfi&amp;lt;&amp;lt;Set Size Filter( {50000,300000} );
mfi&amp;lt;&amp;lt;Set Date Filter( {informat("2019-01-02T08:41:32"), informat("2019-01-02T08:43:52")} );

// make a table of selected files

dtFiltered = mfi&amp;lt;&amp;lt;showSelection();

// make a table of rejected files 

dtUnFiltered = mfi&amp;lt;&amp;lt;showRejection();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50K/minute for this configuration of a network" style="width: 326px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15064iEE5CF6E66E062E5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="50K/minute for this configuration of a network" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;50K/minute for this configuration of a network&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Columns include filter values" style="width: 543px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15065iCFC9281F7C380D02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Columns include filter values" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Columns include filter values&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 11:43:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105091#M38856</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-01-09T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105116#M38862</link>
      <description>&lt;P&gt;If MFI doesn't do what you need, open a cmd.exe window and see how long the DIR command takes. If it is too slow, there isn't much else I know to do, but it is possible it will be a lot faster. In that case, there is a scripting index example under RunProgram that will get you going (2nd example, I think).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DIR has a lot of arguments that affect formatting and results.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:44:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105116#M38862</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-01-09T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files modified after a certain date without a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105127#M38865</link>
      <description>Right now we're just running a simple batch file but that has its own problems.  I'll try the MFI, it looks promising.</description>
      <pubDate>Wed, 09 Jan 2019 15:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-list-of-files-modified-after-a-certain-date-without-a-for/m-p/105127#M38865</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-01-09T15:15:51Z</dc:date>
    </item>
  </channel>
</rss>

