;this script uses Modem-It! to automatically receive multiple files 
;throughout the day instead of ending after receiving a single file.
;Read thru the script comments carefully as their are decisions you 
;need to make, such as whether you want the files moved after they're 
;received.

"mdi|"
w (1A3,33) "password"
"|"           ;you may enter your password here if you wish
w (23,2) "DIALING"
"12 17 |"

*A0*
if (10,39) <> "Already Exists" then  *A2*
"A"             ;overwrites file if it already exists
goto *A0*

*A2*
if (0,42) = "Move File" then *A3*
if (5,3) = "Personal Data" then *MM*
if (9,30) <> "Try again at 2400" then *A2A*
"18"

*A2A*
if (9,30) <> "Try again" then *A0* 
"|"
w 1
jmp *A0*

*A3*
jmp *B1*        ;if you want to print the file then erase this line 

"9 "
w 5

*A4*
if (7,34) <> "Printer Error" then *A5*
"B"             ;abort
jmp *MM*

*A5*
"18 |" 
w 1
if (0,40) <> "Escape" then *A4*
""

*B1*
jmp *MM*        ;if you want to move the file then erase this line

"7 " 
w (13,10) "Destination" 
"e:\paul|"     ;replace the xxxs with the drive and directory where you 
                ;want the file to go
*B2*
if (10,23) <> "File already exists" then *B3*
"A"
*B3*
if (10,21) <> "File moved" then *B2*
" "

*MM* 
w (5,3) "Personal Data"
"|"     ;selects "Receive File"
goto *A0*

end
