What can I do if the temporary file name is the same during concurrent downloads using JMP 17?Hello!
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.
How do you handle the downloaded code?

rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( u ), i++,
rq = New HTTP Request( Method( "GET" ), URL( u[i] ), Timeout( 0.1 ) );
txt = rq << Send;
rqs << Add( rq );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );
Advanced Statistical ModelingQuality and Process EngineeringSharing and Communicating ResultsWindows回复: What can I do if the temporary file name is the same during concurrent downloads using JMP 17?Can I save the results of each download in a memory variable? For example,
I do 100 downloads at the same time and save the results of each download separately txt1 -- txt100 out of 100 variables, right?
Thanks!
回复: What can I do if the temporary file name is the same during concurrent downloads using JMP 17?For MultiHTTPRequest, Add takes an optional "label" parameter (the Scripting Index has the details)
The label will be used to create the filename for the download.
回复: What can I do if the temporary file name is the same during concurrent downloads using JMP 17?Thanks Experts!

rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( u ), i++,
rq = New HTTP Request( Method( "GET" ), URL( u[i] ), Timeout( 0.1 ) );
rqs << Add( rq, "test" || Char( i ) );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );
回复: What can I do if the temporary file name is the same during concurrent downloads using JMP 17?Seems to work:
progress window uses the labels too.progress window uses the labels too.progress window uses the labels too.progress window uses the labels too.progress window uses the labels too.
the variable named data holds
{"C:\Users\v1\AppData\Local\Temp\111(1).jmp",
"C:\Users\v1\AppData\Local\Temp\222(1).jmp"}
Apparently it automatically adds the (1) to make a new name since this was the second time.
Without the label parameter I get
{"C:\Users\v1\AppData\Local\Temp\BlueBirds(2).jmp",
"C:\Users\v1\AppData\Local\Temp\dataSepsis_2(2).jmp"}
After running three times.
查看更多......
回复: What can I do if the temporary file name is the same during concurrent downloads using JMP 17?Thanks Craige!
I'll make sure the label gets eval-ed.