Re: Running mhonarc from MSDOS batch files.

1998-03-07 11:40:56
At 08:38 PM 3/6/98 -0600, Texas Instruments wrote:
I use Eudora on Windows 95 to sort my messages into separate
mailboxes. Then I run mhonarc to archive the messages in
each of the mail box separately. I use DOS separate batch
files to run the following command for each archive.

mhonarc -add -outdir C:/website/wwwroot/mail/dir1
c:/eudora/internet.fol/mailbox1.mbx -rcfile mail1.rc

You're using a mhonarc.bat file to run mhonarc, correct?

DOS usually allows the execution of the commands like the
one above repettitively as follows:

mhonarc -add -outdir C:/website/wwwroot/mail/dir1
c:/eudora/internet.fol/electrog.mbx -rcfile mail1.rc
mhonarc -add -outdir C:/website/wwwroot/mail/dir2
c:/eudora/internet.fol/electrog.mbx -rcfile mail2.rc

But in my case it stops executing as soon as it finishes
processing the first mail box. The control is apparently not
returned to the batchfile to allow it to execute the next

You're experiencing standard DOS batch file behavior, when one .bat file
executes another.

Use "call mhonarc" instead of "mhonarc" for each invocation of mhonarc
inside the batch file that processes your separate mailboxes.

-- SP

<Prev in Thread] Current Thread [Next in Thread>