Re: -mhpattern on NT systems?

2000-12-08 14:30:41
What is cygwin bash?

A free Unix-like API ontop of Win32 including many of the GNU utilties.


Yes, but I don't think I can use forward slashes for regex delimiters?

I do not understand this statement.

Well, I mean I can't put -mhpattern /^*.CNM/ for example, using slashes
instead of double quotes.

On the whole, WshShell.Run(strCmd); will run any complex command line
you throw at it, including long file names and file names with spaces.
It also handles redirection and returns an exit code so you can test if
the call succeeded. Unfortunately, the double quotes thing seems to be a

Is there an argv style version that allows you to explicitly set
the list of arguments, bypassing the command shell?

In general no, but the latest beta has a new method that's supposed to
be more like the C++ way of doing things, so maybe this is the answer. I
have not had a chance to look at the new beta as yet.

MHonArc does return codes.  It is up to the calling process to
handle it as they see fit.  Once MHonArc exits, how the return code
is handled is out MHonArc's hand.  In a nutshell, 0 is return when
processing was successful.  A non-zero is returned on error.  The
return code 75 is returned if no lock could be obtained on the


Is it correct that I'm using MHonArc.BAT, or should I maybe be using
MHonArc.PL instead?

Under WinNT, you can use  It should be more efficient
since perl should be invoked directly due to file type association.
It also avoids the shell redirection problems when depending on

Hmmm, maybe this will solve all the problems but what syntax do I use?
Is it something like:

c:\perl\bin\perl.exe inbox -mhpattern "^*.CNM" -outdir outbox

Gerry Hickman (London UK)

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