home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1995-12-30 | 2.4 KB | 64 lines |
- ' AMOS Assigner V1
- '
- ' Written in AMOS Proffessional by Andrew "Mushroom" Kellett.
- '
- ' If you wish to get in touch with me at Mushroom PD, or you would like
- ' more information on it, or Extreme AMOS, then you can write to me at
- ' this address. I will reply to you in ASCII format on a disk unless you
- ' tell me to do so otherwise :
- '
- ' Andrew "Mushroom" Kellett
- ' Mushroom PD
- ' 32 Castleton Crescent
- ' Gamesley
- ' Glossop
- ' Derbyshire
- ' SK13 9TH
- ' ENGLAND
- '
- ' No screen is ever opened, unless an error is genarated by an assign.
- '
-
- Request Wb
- Amos To Back
-
- ' Because the program is going to be used in WB mode, we must make sure
- ' that all requesters are brought up on a WB screen.
-
- If Not Exist("S:Assign_List.ASC")
- Amos To Front
- Screen Open 0,640,200,4,Hires : Paper 0 : Cls : Curs Off : Flash Off : Hide On
- Amos To Front : Centre "Assign Manager V1 - Error Report" : Print
- Centre "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" : Print : Print
- Centre "The needed file S:Assign_List.ASC could not be located, and no assigns" : Print
- Centre "have been made. Assigns can be made in a Word Processor using this syntax:" : Print : Print
- Centre "First you must enter the new assign name" : Print
- Centre "Followed by the path to it" : Print : Print
- Centre "Example:" : Print : Print
- Centre "Music:" : Print
- Centre "Work:Music/" : Print : Centre "Tools:" : Print : Centre "Workbench/Tools/" : Print : Print
- Centre "To finish the file, place the EOF on the last line, and hit the return button." : Print
- Print : Centre "Hit the left mouse button to leave the program"
-
- Repeat : K=Mouse Key : Until K=1 : End
- End If
-
-
- Open In 1,"S:Assign_List.ASC" : Reserve As Data 4,Lof(1) : Close : Bload "S:Assign_List.ASC",4
- Bsave "ram:Temp",Start(4) To Start(4)+Length(4) : Rem Copy the file to RAM.
-
- ' The file in which all the assign data is stored to is stored in the S:
- ' drawer of the boot disk, under the name
- '
- ' Assign_List.ASC
- '
-
- Open In 1,"Ram:Temp" : Set Input 10,-1
-
- Repeat
- Line Input #1,A$
- If A$="EOF" : End : End If
- Line Input #1,B$
-
- Assign A$ To B$ : Rem AMOSPro command only.
- Until False