ZipExtractFiles and HTTPRequest large files, indication on progress?

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Grovkillen » Wed May 26, 2021 9:17 am

Is it possible to get any indication on the process of a download or zip extraction? I have a zip file I download, about 350MB in size, which I after download is unzipping. I find it hard to tell if the script has stalled or if it's still loading/unpacking. Is it possible to get this info?
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Dorian (MJT support) » Wed May 26, 2021 10:41 am

I'm not sure there is, as both of those commands will remain "busy" until the operation is complete.

Other than setting a timeout for HTTPRequest with HTTP_TIMEOUT and/or checking for an error afterwards :
Result_Variable : Stores result of operation. If LocalFileName is not specified and the operation is successful this will contain the HTML returned. If LocalFileName was specified and the data was successfully written to the file Result_Variable will be blank. Otherwise it will contain an error message.
For ZipExtractFiles, the result variable will be set to 0, otherwise if an error code it will be 1.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Grovkillen » Wed May 26, 2021 11:00 am

Yeah it's not really what I need here. It's during the execution of the command I would like to know its progress.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Dorian (MJT support) » Wed May 26, 2021 11:20 am

I had a feeling it may not be. I'll flag this for Marcus and we'll see if he has any input.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Grovkillen » Wed May 26, 2021 3:34 pm

Would it be possible to make it non-blocking like RunProgram can be set to "not wait for completion"?
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Grovkillen » Thu Jul 22, 2021 5:41 am

Input on this?
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Dorian (MJT support) » Thu Jul 22, 2021 8:19 am

I'll ask him again.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: ZipExtractFiles and HTTPRequest large files, indication on progress?

Post by Grovkillen » Thu Jul 22, 2021 5:47 pm

Thanks! This one is what I'd like to know:
Would it be possible to make it non-blocking like RunProgram can be set to "not wait for completion"?
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts