home *** CD-ROM | disk | FTP | other *** search
- 14:57:16 Friday 24 Apr 1998
-
- I wrote these AmigaDOS scripts primarily to perform repetitive functions that
- I was using in the Shell and then decided I might as well get them on an
- AFormat CD as a learning aid so others can learn how to write things in
- AmigaDOS. The files here aren't the best they could be - there are lots of
- places I could tweak them, add extra functions and so on, but I think this has
- been shown to a greater extent in LhA2LZX - this started out as a way to use
- requesters instead of unreadable command lines in the Shell (it's easier to
- select files from a requester that you want to perform an action or several
- on, than to type in the equivalent in the Shell with all the parameters and
- keywords, which half the time you have to look up because they're only one
- letter switches). As it progressed, it turned into something more complex -
- not only converting from LhA to LZX, but doing such things as checking if
- there was enough memory to store the intermediate files if the temporary
- storage drawer was in RAM:, checking which type the file was and converting to
- the other type, and keeping the smaller file at the end, giving the file size
- saving as well. By keeping these other scripts small you can see how short
- and easy it is to write something like this - start off with the basics, then
- if you want more, write more.
-
-
-
- The scripts provided here are NOT provided with the programs they were made
- for - if you haven't got access to the AmiNET, ask AF to try to get them on
- a future CD. These scripts are given as examples of what AmigaDOS can do,
- and how easy it is to write them. The first versions are usually fairly
- large with several bugs in, so you can see where I have improved things. If
- I was writing them nowadays, they would be a *lot* shorter, with fewer
- places where things could go wrong - UnLZXer is a good example of this, as I
- re-wrote it for a friend recently, and I have commented some of the lines so
- you can see what's happening. If you can follow LhA2LZX (which you should
- read and understand if you want to learn about AmigaDOS script usage), you
- will easily be able to understand these scripts. LhA2LZX is extensively
- commented, and this coupled with the "Program History" page of the
- AmigaGuide documentation gives enough information for you to follow it
- fairly easily.
-
- HappySearch is the only one you can run without using any non-Workbench-
- distribution programs, but you can probably run DMSMaker as most people have
- the DMS program.
-
- Below is a short description of each of the scripts:
-
-
- AllowBad - This uses the AllowBad program by Mikolaj Calusinski in 1997. This
- is a small program which will format disks with hard errors on
- allowing you to use them as normal. All my script does is let you
- select the bad disk via a requester and let you choose which
- filesystem to format it to (INTL, DIRCACHE etc).
-
- DMSMaker - This simply allows you to do all DMS operations via requesters -
- Crunch, Decrunch, Repack, View, Test. A small advantage over the
- other programs I have seen that do this is that because my script
- allows you to choose any floppy-type device to crunch/decrunch to,
- you can use virtual floppies (like FF0: or something). This was
- one of my first scripts, and so there are several improved versions
- of this one.
-
- DMSMakerENK - This is the same as DMSMaker, except it allows you to deal with
- password encrypted DMS files. See if you can spot the extra
- code that deals with this!
-
- DSQView - A nifty little script which will tell you the contents of a
- DiskSqueeze archive, if there is a file list in there.
-
- FillDisk - This uses Fill, a small program which takes a directory full of files
- and fits them onto destination disks with the minimum amount of
- space left over.
-
- HappySearch - This will search selected files for the "Happy New Year 96!"
- virus.
-
- LhAMaker - This simply takes a selected drawer and will archive it as an LhA
- archive.
-
- UnLZXer - Great name, I know ;^) . This just takes a selected LZX archive and
- decompresses it to a selected destination.
-
-
-
- That's it. Read the standard disclaimer in the LhA2LZX amigaguide for all the
- legal stuff ("I take no responsibilty..." etc). Bugs/points to note will be
- mentioned in the documentation for each script. I wrote these a while ago (as
- you can see from the file dates), and I've learnt a lot since writing them, so
- just use them as examples of the basics of AmigaDOS scripts. Feel free to add
- to them, improve them and such for your own use, but remember they are
- copyrighted to me, so if you want to release them onto the AmiNET or something
- then you need my permission first (and of course, I'd like to see how you
- improved my humble scripts...;^) ).
-
- Hope you enjoy reading them, testing them, finding in what situations they
- don't work properly and so on. If you need any help with anything, my e-mail
- address is:
-
- R.Burke-97@student.lboro.ac.uk
-
-
- I'll be glad to help you in any AmigaDOS/ Amiga related thing that I can - and
- that even includes HTML if you ask me nicely!
-
- I suggest you use the same ideas for loading, reading, understanding (and so
- on) these files as documented in the LhA2LZX amigaguide documentation.
-
- If you want to try out the files to see how they work you will need the
- neccesary program files:
- DMS (available almost anywhere)
- LZX (util/arc/lzx121r1.lha)
- LhA (util/arc/LhA_e138.run)
- DSQ (util/arc/DiskSqueeze.lha)
- Fill (disk/misc/AFill_20.lha)
- Allowbad (disk/misc/AllowBad.lha)
- RequestString (util/batch/requeststring.lha)
-
-
- Rich B