<?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 回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622723#M82173</link>
    <description>&lt;P&gt;Seems to work:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="progress window uses the labels too." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51992i3BC06171270FFF4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="progress window uses the labels too." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;progress window uses the labels too.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the variable named &lt;EM&gt;data&lt;/EM&gt; holds&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"C:\Users\v1\AppData\Local\Temp\111(1).jmp",
"C:\Users\v1\AppData\Local\Temp\222(1).jmp"}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Apparently it automatically adds the (1) to make a new name since this was the second time.&lt;/P&gt;
&lt;P&gt;Without the label parameter I get&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"C:\Users\v1\AppData\Local\Temp\BlueBirds(2).jmp",
"C:\Users\v1\AppData\Local\Temp\dataSepsis_2(2).jmp"}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After running three times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

requests = New Multi HTTP Request();
requests &amp;lt;&amp;lt; Add(
	New HTTP Request(
		Method( "GET" ),
		URL( "https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/49/1/BlueBirds.jmp" )
	),
	"111.jmp"
);

requests &amp;lt;&amp;lt; Add(
	New HTTP Request(
		Method( "GET" ),
		URL( "https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/177/2/dataSepsis_2.jmp" )
	),
	"222.jmp"
);

data = requests &amp;lt;&amp;lt; Download( "show progress", "detailed" );
http_requests = requests &amp;lt;&amp;lt; Get Requests();
For( i = 1, i &amp;lt;= N Items( http_requests ), i++,
	Show( http_requests[i] &amp;lt;&amp;lt; Get Mime Type() )
);

dt = Open( data[2] );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Apr 2023 03:11:32 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-04-15T03:11:32Z</dc:date>
    <item>
      <title>What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/614559#M81440</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I used JMP 17 for a concurrent download, which resulted in temporary files with the same name, files being overwritten over and over, and only one file.&lt;BR /&gt;How do you handle the downloaded code?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-21_14-57-31.png" style="width: 597px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51289i47F686ABA920CDE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-21_14-57-31.png" alt="2023-03-21_14-57-31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	rqs = New Multi HTTP Request();
	For( i = 1, i &amp;lt;= N Items( u ), i++,
		rq = New HTTP Request( Method( "GET" ), URL( u[i] ), Timeout( 0.1 ) );
		txt = rq &amp;lt;&amp;lt; Send;
		rqs &amp;lt;&amp;lt; Add( rq );
	);
	hh = rqs &amp;lt;&amp;lt; Get Requests();
	da = rqs &amp;lt;&amp;lt; Download( "show progress", "detailed" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:05:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/614559#M81440</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T16:05:53Z</dc:date>
    </item>
    <item>
      <title>回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/614560#M81441</link>
      <description>&lt;P&gt;Can I save the results of each download in a memory variable? For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do 100 downloads at the same time and save the results of each download separately txt1 -- txt100 out of 100 variables, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 07:15:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/614560#M81441</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-03-21T07:15:10Z</dc:date>
    </item>
    <item>
      <title>回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622704#M82170</link>
      <description>&lt;P&gt;For MultiHTTPRequest, Add takes an optional "label" parameter (the Scripting Index has the details)&lt;/P&gt;
&lt;P&gt;The label will be used to create the filename for the download.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 00:28:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622704#M82170</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2023-04-15T00:28:43Z</dc:date>
    </item>
    <item>
      <title>回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622709#M82171</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I tried to fix it, but it didn't work.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-04-15_09-33-16.png" style="width: 578px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51991i8BAF02BF6EF0BF64/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-04-15_09-33-16.png" alt="2023-04-15_09-33-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	rqs = New Multi HTTP Request();
	For( i = 1, i &amp;lt;= N Items( u ), i++,
		rq = New HTTP Request( Method( "GET" ), URL( u[i] ), Timeout( 0.1 ) );
		rqs &amp;lt;&amp;lt; Add( rq, "test" || Char( i ) );
	);
	hh = rqs &amp;lt;&amp;lt; Get Requests();
	da = rqs &amp;lt;&amp;lt; Download( "show progress", "detailed" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Apr 2023 01:35:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622709#M82171</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-04-15T01:35:53Z</dc:date>
    </item>
    <item>
      <title>回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622723#M82173</link>
      <description>&lt;P&gt;Seems to work:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="progress window uses the labels too." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51992i3BC06171270FFF4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="progress window uses the labels too." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;progress window uses the labels too.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the variable named &lt;EM&gt;data&lt;/EM&gt; holds&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"C:\Users\v1\AppData\Local\Temp\111(1).jmp",
"C:\Users\v1\AppData\Local\Temp\222(1).jmp"}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Apparently it automatically adds the (1) to make a new name since this was the second time.&lt;/P&gt;
&lt;P&gt;Without the label parameter I get&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"C:\Users\v1\AppData\Local\Temp\BlueBirds(2).jmp",
"C:\Users\v1\AppData\Local\Temp\dataSepsis_2(2).jmp"}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After running three times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

requests = New Multi HTTP Request();
requests &amp;lt;&amp;lt; Add(
	New HTTP Request(
		Method( "GET" ),
		URL( "https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/49/1/BlueBirds.jmp" )
	),
	"111.jmp"
);

requests &amp;lt;&amp;lt; Add(
	New HTTP Request(
		Method( "GET" ),
		URL( "https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/177/2/dataSepsis_2.jmp" )
	),
	"222.jmp"
);

data = requests &amp;lt;&amp;lt; Download( "show progress", "detailed" );
http_requests = requests &amp;lt;&amp;lt; Get Requests();
For( i = 1, i &amp;lt;= N Items( http_requests ), i++,
	Show( http_requests[i] &amp;lt;&amp;lt; Get Mime Type() )
);

dt = Open( data[2] );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 03:11:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622723#M82173</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-04-15T03:11:32Z</dc:date>
    </item>
    <item>
      <title>回复： What can I do if the temporary file name is the same during concurrent downloads using JMP 17?</title>
      <link>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622963#M82196</link>
      <description>&lt;P&gt;Thanks Craige!&lt;/P&gt;
&lt;P&gt;I'll make sure the label gets eval-ed.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:17:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-can-I-do-if-the-temporary-file-name-is-the-same-during/m-p/622963#M82196</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2023-04-17T13:17:01Z</dc:date>
    </item>
  </channel>
</rss>

