Below I try to translate the first script, also see logic flowchart image.
[quote]
@ECHO OFF
TASKLIST | FIND "winpm-32.exe" && GOTO :EOF
[/quote]
@ECHO OFF = Turn command-echoing off.
TASKLIST = Displays a list of running applications.
| = Pipeline output of Left-Side to input of Right-Side.
FIND = Search for a text string.
&& = If Left-Side of statement is True, do the Right-Side of statement.
GOTO :EOF = Go to the End Of File; quit.
List all running applications, if the Pegasus executable IS found quit.
[quote]
CD/d "C:\PMAIL\MAILBOX"
[/quote]
Change the Current Directory, including the Drive to the Right-Side.
[quote]
IF NOT EXIST "ADDRBOOK.PM1" GOTO :SORTBOOK
[/quote]
If the Sorted Address Book Index file (.pm1) does not exist go to the Label named SORTBOOK
[quote]
ATTRIB "ADDRBOOK.PMR" | FIND "A "|| GOTO :EOF
[/quote]
ATTRIB = Displays or changes file attributes.
|| = If Left-Side of statement is False, do the Right-Side of statement.
Display the file attributes of the Address Book file (.pmr), if the Archive bit attribute IS NOT found quit.
[quote]
:SORTBOOK
PATH="C:\PMAIL\PROGRAMS";%PATH%
PMSORT "ADDRBOOK.PMR" && ATTRIB -a "ADDRBOOK.PMR"
[/quote]
:SORTBOOK = Label that batch can be directed to GOTO
Add the directory which contains the PMSORT utility to the PATH variable.
(This is only done to avoid the need to include the fully qualified path name of PMSORT.EXE).
Sort the Address Book file(creates .pm1), if successfull, remove the Archive bit attribute Address Book file.
When the Address Book is changed by Pegasus the Archive bit will be turned On (next time the script is run the Sort the Address Book).

<P>Below I try to translate the first script, also see logic flowchart image.</P>
<P>[quote]
&nbsp;&nbsp;&nbsp; @ECHO OFF
&nbsp;&nbsp;&nbsp; TASKLIST | FIND "winpm-32.exe" &amp;&amp; GOTO :EOF
[/quote]</P>
<P>@ECHO OFF = Turn command-echoing off.
TASKLIST = Displays a list of running applications.
| = Pipeline output of Left-Side to input of Right-Side.
FIND = Search for a text string.
&amp;&amp; = If Left-Side of statement is True, do the Right-Side of statement.
GOTO :EOF = Go to the End Of File; quit.</P>
<P>List all running applications, if the Pegasus executable IS found quit.</P>
<P>[quote]
&nbsp;&nbsp;&nbsp; CD/d "C:\PMAIL\MAILBOX"
[/quote]</P>
<P>Change the Current Directory, including the Drive to the Right-Side.</P>
<P>[quote]
&nbsp;&nbsp;&nbsp; IF NOT EXIST "ADDRBOOK.PM1" GOTO :SORTBOOK
[/quote]</P>
<P>If the Sorted Address Book Index file (.pm1) does not exist go to the Label named SORTBOOK</P>
<P>[quote]
&nbsp;&nbsp;&nbsp; ATTRIB "ADDRBOOK.PMR" | FIND "A&nbsp; "|| GOTO :EOF
[/quote]</P>
<P>ATTRIB = Displays or changes file attributes.
|| = If Left-Side of statement is False, do the Right-Side of statement.</P>
<P>Display the file attributes of the Address Book file (.pmr), if the Archive bit attribute IS NOT found quit.</P>
<P>[quote]
&nbsp;&nbsp;&nbsp; :SORTBOOK
&nbsp;&nbsp;&nbsp; PATH="C:\PMAIL\PROGRAMS";%PATH%
&nbsp;&nbsp;&nbsp; PMSORT "ADDRBOOK.PMR" &amp;&amp; ATTRIB -a "ADDRBOOK.PMR"
[/quote]</P>
<P>:SORTBOOK = Label that batch can be directed to GOTO</P>
<P>Add the directory which contains the PMSORT utility to the PATH variable.
(This is only done to avoid the need to include the fully qualified path name of PMSORT.EXE).
Sort the Address Book file(creates .pm1), if successfull, remove the Archive bit attribute Address Book file.</P>
<P>When the Address Book is changed by Pegasus the Archive bit will be turned On (next time the script is run the Sort the Address Book).</P>
<P>
<IMG style="WIDTH: 513px; HEIGHT: 435px" title=flowchart alt=flowchart align=absBottom src="http://oi52.tinypic.com/2cfa721.jpg" width=513 height=435 mce_src="http://oi52.tinypic.com/2cfa721.jpg"></P>