Welcome, Guest. Please login or register.

Author Topic: How to send software to amiga from PC  (Read 6546 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Stedy

  • Sr. Member
  • ****
  • Join Date: Jul 2002
  • Posts: 259
    • Show all replies
    • http://www.ianstedman.co.uk
Re: How to send software to amiga from PC
« on: July 03, 2004, 02:56:38 PM »
Hi,

If you have the Amiga Explorer package (part of Amiga forever) it has an automated setup that copies this Arexx script to your Amiga (WB 2.0+ only).

----Begin code segment-----

/* Cloanto Amiga Explorer Rexx script - Copyright © 2000 Cloanto ® - http://cloanto.com */

/* $VER: Setup.rexx 1.0 */

binfname = 'RAM:Setup2'
blocksize = 512

IF OPEN('serfile', 'SER:', 'R') THEN DO
   IF OPEN('binfile', binfname, 'W') THEN DO
      DO FOREVER
         data = READCH('serfile', blocksize)
         datalen = LENGTH(data)
         IF datalen > 0 THEN DO
            IF WRITECH('binfile', data) ~= datalen THEN DO
               SAY 'Error writing file.'
               datalen = 0
            END
         END
         IF datalen ~= blocksize | EOF('serfile') THEN BREAK
      END
      CALL CLOSE('binfile')
   END
   CALL CLOSE('serfile')
END

ADDRESS COMMAND 'Run >NIL:' binfname

---- End Code segment----

This simply polls the serial port for data and when it recieves and end of file, exits. I think you have to terminate this on the Amiga with a Ctrl-C combo.

You can use either the Amiga explorer software or Windows Hyperterminal to send data, I think, need to check.

If you have Amiga explorer installed, right click on the Amiga Explorer Icon on your desktop and select setup, then follow the prompts.

Hope this helps.