Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: File types - Problem with downloads Keywords: SYS BIN file types Message-ID: <32580@apple.Apple.COM> Date: 21 Jun 89 20:13:17 GMT References: <2069@dvinci.USask.CA> Organization: Apple Computer Inc, Cupertino, CA Lines: 45 In article <2069@dvinci.USask.CA> maton@dvinci.USask.CA (Terry Maton) writes: >I have been having problems with file types now for some time. > >When I download a EXEcable file and EXEC it, it makes a BIN type file >instead of a SYS type. Do you get any error messages? If all goes well with the execution of an Executioner-created EXEC file, you should get the proper file type. Did you check to see if the resulting BIN file is actuall packed in Binary II or ShrinkIt format? >This means I cannot run it :-( > >I know there is a file type changer program in the APPLE2-L archives, but >yes - Catch-22 - that file when downloaded and EXEC'd produces a BIN file!!! You don't *really* need a special filetype changer to get started--it just makes the process simpler. (I really wish everybody habitually used a command shell that has a command for changing filetypes and auxtypes.) Anyway, if you have a file that's *supposed* to be a SYS file but is a BIN file instead, here's what you can do from BASIC.SYSTEM. If you just want to execute the thing, BLOAD myfile,A8192 CALL 8192 If you want to change the type, create a new SYS file and save the contents of the BIN file into it, like this: CREATE newfile,TSYS BLOAD oldfile,A8192 BSAVE newfile,TSYS,A8192,Lxyz where "xyz" is the "endfile" (the size) of the old file as shown by the CATALOG command (*not* the CAT command). --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.