home *** CD-ROM | disk | FTP | other *** search
- SCRIPT
-
- Define Data_Directory
- Define Files_Directory
- Define Userlog_Directory
- Define Number_of_Days
- Define Fmail_Name
- Define I
- Define Filename
- Define Dummy
- Define First_Yes=0
- Define X
- Define Check_File_First=0
-
- Close
- Open ('Fmail.Dat',Input)
- Finput Data_Directory
- Finput Files_Directory
- Finput Userlog_Directory
- Finput Number_of_Days
- Close
-
- Top:
- If File_Exists ('[Data_Directory]Fmail.Inf') Then
- Goto Top1
- Else
- Exit
- Endif
-
- Top1: ;Check to see if person has Fmail!!!!
- Close
- Open ('[Data_Directory]Fmail.Inf',Input)
- Finput Fmail_Name
- If Fmail_Name = &01 then
- FInput Dummy
- FInput Filename
- Check_File_First=1
- Goto Check_File
- Top1A:
- Printe 'You Have The Following File(s) Waiting In F-Mail'
- Printe
- Printe '[Filename]'
- First_Yes=1
- Top1B:
- X=6
- Goto Top2
- Else
- X=8
- Goto Top2
- Endif
-
- Top2:
- Finput Fmail_Name [X]
- If Fmail_Name = &01 then
- FInput Dummy
- FInput Filename
- Goto Check_File
- Top2A:
- Gosub Print_Message
- Printe '[Filename]'
- Top2B:
- X=6
- Goto Top2
- Else
- X=8
- Goto Top2
- Endif
-
- EOF:
- Close
- For I=1 to 1500
- Endfor
- Exit
-
- Print_Message:
- If First_Yes=1 Then
- Return
- Else
- Printe 'You Have The Following File(s) Waiting In F-Mail'
- Printe
- First_Yes=1
- Return
- Endif
-
- Check_File:
- If File_Exists ('[Files_Directory][Filename]') Then
- Goto Check_File_Yes
- Else
- Goto Check_File_No
- Endif
- Check_File_Yes:
- If Check_File_First=1 Then
- Check_File_First=0
- Goto Top1A
- Else
- Goto Top2A
- Endif
- Check_File_No:
- If Check_File_First=1 Then
- Check_File_First=0
- Goto Top1B
- Else
- Goto Top2B
- Endif
-
- ə