home *** CD-ROM | disk | FTP | other *** search
- /****************************************
- PlaySID One-file extracter v1.0
- April 97, Mikael Lund
-
- Extracts Author & copyright info, and
- saves this in the filenote:
- AUTHOR, ©COPYRIGHT
-
- Usage: Rx PSidEX name
- ****************************************/
- parse arg fil
- fil=compress(fil,'"')
-
- open(psid,fil);str.0=readch(psid,22)
- note=str.1=str.2=str.3=""
- if upper(left(str.0,4))~="PSID" then exit
-
- str.1=compress(readch(psid,32),x2c(0))
- str.2=compress(readch(psid,32),x2c(0))
- str.3=compress(readch(psid,32),x2c(0))
-
- note=str.2", ©"str.3
- if upper(str.2)=upper(str.3) then str.3=""
- if pos("?",str.2)=1 then str.2=""
- if pos("?",str.2)=2 then str.2=""
- if pos("?",str.3)=1 then str.3=""
- if pos("?",str.3)=2 then str.3=""
-
- if str.2="" then note="©"str.3
- if str.3="" then note=str.2
- if note="" then exit
- say note
- address command 'filenote "'fil'" "'note'" >NIL:'
- close(psid)
- /**/
-