Re: Exec vs. Run



Yes, there is a reason the app hangs; one or both of the I/O buffers
(StdOut & StdErr) is filling. They must be flushed continuously to
keep this from happening. I wrote a script example a long time ago
that explins this and shows a work around. See this thread:

http://groups.google.com/group/microsoft.public.scripting.wsh/browse_frm/thread/6365b4f59adbf276/e4e6612fc0d9fea1#e4e6612fc0d9fea1

Tom Lavedas
===========

D. Malaguti wrote:
> I'm pretty new to scripting in general and I'm wondering if someone can
> help me understand why something doesn't work.
>
> I've got a script (written in JScript) that launches 7-zip
> (http://www.7-zip.org), archives a bunch of files, then copies the
> archive to a removable disk. I originally wrote it using the Exec
> method to launch 7-zip. This worked great when I tested it, but in the
> real world I discovered that 7-zip would launch, the archive file would
> grow to exactly 2MB, and then 7-zip would appear to hang. I tried
> re-writing it using the Run method and it works fine (actually even
> better for my purposes).
>
> Is there a logical reason why Exec would cause 7-zip to hit this 2MB
> limit, or is it just some peculiarity of 7-zip itself?
>
> -D.

.



Relevant Pages

  • Re: The Long Way Home (was Re: Retro Review: Out Around Rigel, by Robert H. Wilson)
    ... Anderson could assume whatever he wanted about the engineering culture ... become so cautious that progress slows to a snail's creep, so reckless ... Poul Anderson set the launch of his hypothetical starship," who knows? ... One reason for this was that the Americans and Soviets were in a race ...
    (rec.arts.sf.written)
  • Re: password protected .pst files...
    ... and I am not there and for whatever reason ... I will just close outlook. ... PST files. ... and click on one of the archives, ...
    (microsoft.public.outlook)
  • Re: Wolf With the Red Roses
    ... posts to see if I gleaned that from his messages. ... his main job, after leaving the service, was with a recycling ... I could use the reason used by children-of all ages -"He ... I've also read some archives. ...
    (alt.support.chronic-pain)
  • Re: I always delete my email but I was wondering..
    ... >> we now know to be Usenet, decided to scribble: ... No specific reason, I just back up my complete HD's. ... >> archives! ...
    (alt.2600)
  • Re: >> currentDb access.application
    ... Other launch examples that I proposed: ... to treat the other apps as library DBs) with the common objects. ... I just don't see any reason to maintain separate apps. ...
    (microsoft.public.access.modulesdaovba)