[comp.sys.amiga] script file

armhold@topaz.rutgers.edu (George Armhold) (11/04/89)

Those of you who have access to FTP from an IBM PC may find this
useful for downloading Amiga software from the net.  I FTP files from
uihub.cs.uiuc.edu directly to an IBM 3.5 " disk  (all our PC's have
ethernet 'cept the Amiga :-(  ).  I then use CrossDos to read the .zoo
files on the IBM disk.  I take the CrossDos utilities from Fish Disk
240 and install the necessary files on my Workbench disk.  (You need
the arp mount command, mountlist.msdosFS, and msdosfilesystem.)  
I then execute the following script to automatically un-zoo all the
files from di0: and place them on df2:.  

This is my first attempt at writing a batch file in AmigaDOS so there
are quite a few holes in it.  One thing that I can't seem to fix is
that after the script executes, I can't alter the script- I get an
error like "file still in use".  Other than this, it works. If anyone 
can fix this bug (or offer any other improvements) I'd appreciate it.  


Thanks,
-George


PS:  Thanks go out to Michael Scott Nelson for an explanation of the
"spat" command!
---------------------------------------------------------------------------
resident SYS:c/echo
resident SYS:c/ask
resident SYS:c/copy
resident SYS:c/cd

copy SYS:s/spat to ram:
copy SYS:c/zoo to ram:


alias doit ram:zoo e// []
mount di0: from DEVS:mountlist.msdosFS
ask "Please insert the IBM compat. disk in drive df0: and hit return when ready"
echo "Copying the .zoo files to ram:..."
copy di0:#?.zoo to ram:
ask "Please insert the destination disk in drive df2: and hit return when ready"
cd df2:
spat doit ram:#?.zoo
echo "Deleting .zoo files from RAM:."
delete ram:#?.zoo
echo "Finished."