Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_2_scp.adf » !ARMEdit_ARMEdit » Docs/PUTFILE

Docs/PUTFILE

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_2_scp.adf » !ARMEdit_ARMEdit
Filename: Docs/PUTFILE
Read OK:
File size: 0ACA bytes
Load address: 0000
Exec address: 0000
File contents
File        : PUTFILE
Date        : 07-Dec-97
Author      : � A.Thoukydides, 1995, 1996, 1997
Description : Description of the PC PUTFILE command that is part of the
              ARMEdit suite.


INTRODUCTION

The "PUTFILE" command is a replacement for the command of the same name that
was supplied with Acorn's software PC emulator. It allows DOS files to be
transferred to RISC OS. To use this command it is necessary to load the
ARMEdit module before starting the PC front-end.


USAGE

The syntax is:

    PUTFILE [/?] [/M] [/P] [/S] [/W] <DOS path> [<RISC OS path>]

where

    /?              - Displays some help text.
    /M              - Enable multitasking during copying.
    /P              - Prompts before copying each file.
    /S              - Copy subdirectories.
    /W              - Disable use of the "Save as" window.
    <DOS path>      - Wildcarded source DOS file specification to copy.
    <RISC OS path>  - The destination RISC OS path.

The source path may include standard DOS wildcards, i.e. "?" to match a
single character or "*" for multiple characters. Files are matched using the
same rules as used by other DOS commands.

If no destination filename is specified then the source filename is used with
various character transformations performed. Without the "/W" switch a RISC
OS "Save as" window is used to select a suitable destination; this requires
!ARMEdit to be running.

The filetype is selected using the mappings set up using the DOSMap command.
This is initially cached when the ARMEdit module starts, but may be reread at
any time using the command ARMEdit_DOSMap.


THINGS TO DO

The following are changes that may be made to the PUTFILE command sometime in
the future.

    None at the moment!


VERSION HISTORY

0.00 (12-Nov-95)    Original development version.

0.01 (14-Nov-95)    Added version number and copyright message.

0.02 (17-Nov-95)    Uses correct HPC service identifier.
                    Changed to a .COM file to make it smaller.
                    Made error checking more comprehensive and added help text.
                    Filetype of destination file is based on file extension.

0.04 (16-Dec-95)    Uses real HPC.

0.05 (17-Dec-95)    Improved filename translation.

1.00 (12-Jan-96)    First official release version.

1.01 (11-Mar-96)    Version number updated to match the module.

1.02 (06-Aug-96)    Date and time stamps are preserved on copied files.
                    Added support for Acorn's software PC emulator.

1.03 (21-Feb-97)    Speeded up transfer when multitasking.
                    Added option to use a RISC OS "Save as" window.
                    Included support for wildcards and recursion.

1.04 (07-Dec-97)    Version number updated to match the module.
00000000  46 69 6c 65 20 20 20 20  20 20 20 20 3a 20 50 55  |File        : PU|
00000010  54 46 49 4c 45 0a 44 61  74 65 20 20 20 20 20 20  |TFILE.Date      |
00000020  20 20 3a 20 30 37 2d 44  65 63 2d 39 37 0a 41 75  |  : 07-Dec-97.Au|
00000030  74 68 6f 72 20 20 20 20  20 20 3a 20 a9 20 41 2e  |thor      : . A.|
00000040  54 68 6f 75 6b 79 64 69  64 65 73 2c 20 31 39 39  |Thoukydides, 199|
00000050  35 2c 20 31 39 39 36 2c  20 31 39 39 37 0a 44 65  |5, 1996, 1997.De|
00000060  73 63 72 69 70 74 69 6f  6e 20 3a 20 44 65 73 63  |scription : Desc|
00000070  72 69 70 74 69 6f 6e 20  6f 66 20 74 68 65 20 50  |ription of the P|
00000080  43 20 50 55 54 46 49 4c  45 20 63 6f 6d 6d 61 6e  |C PUTFILE comman|
00000090  64 20 74 68 61 74 20 69  73 20 70 61 72 74 20 6f  |d that is part o|
000000a0  66 20 74 68 65 0a 20 20  20 20 20 20 20 20 20 20  |f the.          |
000000b0  20 20 20 20 41 52 4d 45  64 69 74 20 73 75 69 74  |    ARMEdit suit|
000000c0  65 2e 0a 0a 0a 49 4e 54  52 4f 44 55 43 54 49 4f  |e....INTRODUCTIO|
000000d0  4e 0a 0a 54 68 65 20 22  50 55 54 46 49 4c 45 22  |N..The "PUTFILE"|
000000e0  20 63 6f 6d 6d 61 6e 64  20 69 73 20 61 20 72 65  | command is a re|
000000f0  70 6c 61 63 65 6d 65 6e  74 20 66 6f 72 20 74 68  |placement for th|
00000100  65 20 63 6f 6d 6d 61 6e  64 20 6f 66 20 74 68 65  |e command of the|
00000110  20 73 61 6d 65 20 6e 61  6d 65 20 74 68 61 74 0a  | same name that.|
00000120  77 61 73 20 73 75 70 70  6c 69 65 64 20 77 69 74  |was supplied wit|
00000130  68 20 41 63 6f 72 6e 27  73 20 73 6f 66 74 77 61  |h Acorn's softwa|
00000140  72 65 20 50 43 20 65 6d  75 6c 61 74 6f 72 2e 20  |re PC emulator. |
00000150  49 74 20 61 6c 6c 6f 77  73 20 44 4f 53 20 66 69  |It allows DOS fi|
00000160  6c 65 73 20 74 6f 20 62  65 0a 74 72 61 6e 73 66  |les to be.transf|
00000170  65 72 72 65 64 20 74 6f  20 52 49 53 43 20 4f 53  |erred to RISC OS|
00000180  2e 20 54 6f 20 75 73 65  20 74 68 69 73 20 63 6f  |. To use this co|
00000190  6d 6d 61 6e 64 20 69 74  20 69 73 20 6e 65 63 65  |mmand it is nece|
000001a0  73 73 61 72 79 20 74 6f  20 6c 6f 61 64 20 74 68  |ssary to load th|
000001b0  65 0a 41 52 4d 45 64 69  74 20 6d 6f 64 75 6c 65  |e.ARMEdit module|
000001c0  20 62 65 66 6f 72 65 20  73 74 61 72 74 69 6e 67  | before starting|
000001d0  20 74 68 65 20 50 43 20  66 72 6f 6e 74 2d 65 6e  | the PC front-en|
000001e0  64 2e 0a 0a 0a 55 53 41  47 45 0a 0a 54 68 65 20  |d....USAGE..The |
000001f0  73 79 6e 74 61 78 20 69  73 3a 0a 0a 20 20 20 20  |syntax is:..    |
00000200  50 55 54 46 49 4c 45 20  5b 2f 3f 5d 20 5b 2f 4d  |PUTFILE [/?] [/M|
00000210  5d 20 5b 2f 50 5d 20 5b  2f 53 5d 20 5b 2f 57 5d  |] [/P] [/S] [/W]|
00000220  20 3c 44 4f 53 20 70 61  74 68 3e 20 5b 3c 52 49  | <DOS path> [<RI|
00000230  53 43 20 4f 53 20 70 61  74 68 3e 5d 0a 0a 77 68  |SC OS path>]..wh|
00000240  65 72 65 0a 0a 20 20 20  20 2f 3f 20 20 20 20 20  |ere..    /?     |
00000250  20 20 20 20 20 20 20 20  20 2d 20 44 69 73 70 6c  |         - Displ|
00000260  61 79 73 20 73 6f 6d 65  20 68 65 6c 70 20 74 65  |ays some help te|
00000270  78 74 2e 0a 20 20 20 20  2f 4d 20 20 20 20 20 20  |xt..    /M      |
00000280  20 20 20 20 20 20 20 20  2d 20 45 6e 61 62 6c 65  |        - Enable|
00000290  20 6d 75 6c 74 69 74 61  73 6b 69 6e 67 20 64 75  | multitasking du|
000002a0  72 69 6e 67 20 63 6f 70  79 69 6e 67 2e 0a 20 20  |ring copying..  |
000002b0  20 20 2f 50 20 20 20 20  20 20 20 20 20 20 20 20  |  /P            |
000002c0  20 20 2d 20 50 72 6f 6d  70 74 73 20 62 65 66 6f  |  - Prompts befo|
000002d0  72 65 20 63 6f 70 79 69  6e 67 20 65 61 63 68 20  |re copying each |
000002e0  66 69 6c 65 2e 0a 20 20  20 20 2f 53 20 20 20 20  |file..    /S    |
000002f0  20 20 20 20 20 20 20 20  20 20 2d 20 43 6f 70 79  |          - Copy|
00000300  20 73 75 62 64 69 72 65  63 74 6f 72 69 65 73 2e  | subdirectories.|
00000310  0a 20 20 20 20 2f 57 20  20 20 20 20 20 20 20 20  |.    /W         |
00000320  20 20 20 20 20 2d 20 44  69 73 61 62 6c 65 20 75  |     - Disable u|
00000330  73 65 20 6f 66 20 74 68  65 20 22 53 61 76 65 20  |se of the "Save |
00000340  61 73 22 20 77 69 6e 64  6f 77 2e 0a 20 20 20 20  |as" window..    |
00000350  3c 44 4f 53 20 70 61 74  68 3e 20 20 20 20 20 20  |<DOS path>      |
00000360  2d 20 57 69 6c 64 63 61  72 64 65 64 20 73 6f 75  |- Wildcarded sou|
00000370  72 63 65 20 44 4f 53 20  66 69 6c 65 20 73 70 65  |rce DOS file spe|
00000380  63 69 66 69 63 61 74 69  6f 6e 20 74 6f 20 63 6f  |cification to co|
00000390  70 79 2e 0a 20 20 20 20  3c 52 49 53 43 20 4f 53  |py..    <RISC OS|
000003a0  20 70 61 74 68 3e 20 20  2d 20 54 68 65 20 64 65  | path>  - The de|
000003b0  73 74 69 6e 61 74 69 6f  6e 20 52 49 53 43 20 4f  |stination RISC O|
000003c0  53 20 70 61 74 68 2e 0a  0a 54 68 65 20 73 6f 75  |S path...The sou|
000003d0  72 63 65 20 70 61 74 68  20 6d 61 79 20 69 6e 63  |rce path may inc|
000003e0  6c 75 64 65 20 73 74 61  6e 64 61 72 64 20 44 4f  |lude standard DO|
000003f0  53 20 77 69 6c 64 63 61  72 64 73 2c 20 69 2e 65  |S wildcards, i.e|
00000400  2e 20 22 3f 22 20 74 6f  20 6d 61 74 63 68 20 61  |. "?" to match a|
00000410  0a 73 69 6e 67 6c 65 20  63 68 61 72 61 63 74 65  |.single characte|
00000420  72 20 6f 72 20 22 2a 22  20 66 6f 72 20 6d 75 6c  |r or "*" for mul|
00000430  74 69 70 6c 65 20 63 68  61 72 61 63 74 65 72 73  |tiple characters|
00000440  2e 20 46 69 6c 65 73 20  61 72 65 20 6d 61 74 63  |. Files are matc|
00000450  68 65 64 20 75 73 69 6e  67 20 74 68 65 0a 73 61  |hed using the.sa|
00000460  6d 65 20 72 75 6c 65 73  20 61 73 20 75 73 65 64  |me rules as used|
00000470  20 62 79 20 6f 74 68 65  72 20 44 4f 53 20 63 6f  | by other DOS co|
00000480  6d 6d 61 6e 64 73 2e 0a  0a 49 66 20 6e 6f 20 64  |mmands...If no d|
00000490  65 73 74 69 6e 61 74 69  6f 6e 20 66 69 6c 65 6e  |estination filen|
000004a0  61 6d 65 20 69 73 20 73  70 65 63 69 66 69 65 64  |ame is specified|
000004b0  20 74 68 65 6e 20 74 68  65 20 73 6f 75 72 63 65  | then the source|
000004c0  20 66 69 6c 65 6e 61 6d  65 20 69 73 20 75 73 65  | filename is use|
000004d0  64 20 77 69 74 68 0a 76  61 72 69 6f 75 73 20 63  |d with.various c|
000004e0  68 61 72 61 63 74 65 72  20 74 72 61 6e 73 66 6f  |haracter transfo|
000004f0  72 6d 61 74 69 6f 6e 73  20 70 65 72 66 6f 72 6d  |rmations perform|
00000500  65 64 2e 20 57 69 74 68  6f 75 74 20 74 68 65 20  |ed. Without the |
00000510  22 2f 57 22 20 73 77 69  74 63 68 20 61 20 52 49  |"/W" switch a RI|
00000520  53 43 0a 4f 53 20 22 53  61 76 65 20 61 73 22 20  |SC.OS "Save as" |
00000530  77 69 6e 64 6f 77 20 69  73 20 75 73 65 64 20 74  |window is used t|
00000540  6f 20 73 65 6c 65 63 74  20 61 20 73 75 69 74 61  |o select a suita|
00000550  62 6c 65 20 64 65 73 74  69 6e 61 74 69 6f 6e 3b  |ble destination;|
00000560  20 74 68 69 73 20 72 65  71 75 69 72 65 73 0a 21  | this requires.!|
00000570  41 52 4d 45 64 69 74 20  74 6f 20 62 65 20 72 75  |ARMEdit to be ru|
00000580  6e 6e 69 6e 67 2e 0a 0a  54 68 65 20 66 69 6c 65  |nning...The file|
00000590  74 79 70 65 20 69 73 20  73 65 6c 65 63 74 65 64  |type is selected|
000005a0  20 75 73 69 6e 67 20 74  68 65 20 6d 61 70 70 69  | using the mappi|
000005b0  6e 67 73 20 73 65 74 20  75 70 20 75 73 69 6e 67  |ngs set up using|
000005c0  20 74 68 65 20 44 4f 53  4d 61 70 20 63 6f 6d 6d  | the DOSMap comm|
000005d0  61 6e 64 2e 0a 54 68 69  73 20 69 73 20 69 6e 69  |and..This is ini|
000005e0  74 69 61 6c 6c 79 20 63  61 63 68 65 64 20 77 68  |tially cached wh|
000005f0  65 6e 20 74 68 65 20 41  52 4d 45 64 69 74 20 6d  |en the ARMEdit m|
00000600  6f 64 75 6c 65 20 73 74  61 72 74 73 2c 20 62 75  |odule starts, bu|
00000610  74 20 6d 61 79 20 62 65  20 72 65 72 65 61 64 20  |t may be reread |
00000620  61 74 0a 61 6e 79 20 74  69 6d 65 20 75 73 69 6e  |at.any time usin|
00000630  67 20 74 68 65 20 63 6f  6d 6d 61 6e 64 20 41 52  |g the command AR|
00000640  4d 45 64 69 74 5f 44 4f  53 4d 61 70 2e 0a 0a 0a  |MEdit_DOSMap....|
00000650  54 48 49 4e 47 53 20 54  4f 20 44 4f 0a 0a 54 68  |THINGS TO DO..Th|
00000660  65 20 66 6f 6c 6c 6f 77  69 6e 67 20 61 72 65 20  |e following are |
00000670  63 68 61 6e 67 65 73 20  74 68 61 74 20 6d 61 79  |changes that may|
00000680  20 62 65 20 6d 61 64 65  20 74 6f 20 74 68 65 20  | be made to the |
00000690  50 55 54 46 49 4c 45 20  63 6f 6d 6d 61 6e 64 20  |PUTFILE command |
000006a0  73 6f 6d 65 74 69 6d 65  20 69 6e 0a 74 68 65 20  |sometime in.the |
000006b0  66 75 74 75 72 65 2e 0a  0a 20 20 20 20 4e 6f 6e  |future...    Non|
000006c0  65 20 61 74 20 74 68 65  20 6d 6f 6d 65 6e 74 21  |e at the moment!|
000006d0  0a 0a 0a 56 45 52 53 49  4f 4e 20 48 49 53 54 4f  |...VERSION HISTO|
000006e0  52 59 0a 0a 30 2e 30 30  20 28 31 32 2d 4e 6f 76  |RY..0.00 (12-Nov|
000006f0  2d 39 35 29 20 20 20 20  4f 72 69 67 69 6e 61 6c  |-95)    Original|
00000700  20 64 65 76 65 6c 6f 70  6d 65 6e 74 20 76 65 72  | development ver|
00000710  73 69 6f 6e 2e 0a 0a 30  2e 30 31 20 28 31 34 2d  |sion...0.01 (14-|
00000720  4e 6f 76 2d 39 35 29 20  20 20 20 41 64 64 65 64  |Nov-95)    Added|
00000730  20 76 65 72 73 69 6f 6e  20 6e 75 6d 62 65 72 20  | version number |
00000740  61 6e 64 20 63 6f 70 79  72 69 67 68 74 20 6d 65  |and copyright me|
00000750  73 73 61 67 65 2e 0a 0a  30 2e 30 32 20 28 31 37  |ssage...0.02 (17|
00000760  2d 4e 6f 76 2d 39 35 29  20 20 20 20 55 73 65 73  |-Nov-95)    Uses|
00000770  20 63 6f 72 72 65 63 74  20 48 50 43 20 73 65 72  | correct HPC ser|
00000780  76 69 63 65 20 69 64 65  6e 74 69 66 69 65 72 2e  |vice identifier.|
00000790  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000007a0  20 20 20 20 20 43 68 61  6e 67 65 64 20 74 6f 20  |     Changed to |
000007b0  61 20 2e 43 4f 4d 20 66  69 6c 65 20 74 6f 20 6d  |a .COM file to m|
000007c0  61 6b 65 20 69 74 20 73  6d 61 6c 6c 65 72 2e 0a  |ake it smaller..|
000007d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000007e0  20 20 20 20 4d 61 64 65  20 65 72 72 6f 72 20 63  |    Made error c|
000007f0  68 65 63 6b 69 6e 67 20  6d 6f 72 65 20 63 6f 6d  |hecking more com|
00000800  70 72 65 68 65 6e 73 69  76 65 20 61 6e 64 20 61  |prehensive and a|
00000810  64 64 65 64 20 68 65 6c  70 20 74 65 78 74 2e 0a  |dded help text..|
00000820  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000830  20 20 20 20 46 69 6c 65  74 79 70 65 20 6f 66 20  |    Filetype of |
00000840  64 65 73 74 69 6e 61 74  69 6f 6e 20 66 69 6c 65  |destination file|
00000850  20 69 73 20 62 61 73 65  64 20 6f 6e 20 66 69 6c  | is based on fil|
00000860  65 20 65 78 74 65 6e 73  69 6f 6e 2e 0a 0a 30 2e  |e extension...0.|
00000870  30 34 20 28 31 36 2d 44  65 63 2d 39 35 29 20 20  |04 (16-Dec-95)  |
00000880  20 20 55 73 65 73 20 72  65 61 6c 20 48 50 43 2e  |  Uses real HPC.|
00000890  0a 0a 30 2e 30 35 20 28  31 37 2d 44 65 63 2d 39  |..0.05 (17-Dec-9|
000008a0  35 29 20 20 20 20 49 6d  70 72 6f 76 65 64 20 66  |5)    Improved f|
000008b0  69 6c 65 6e 61 6d 65 20  74 72 61 6e 73 6c 61 74  |ilename translat|
000008c0  69 6f 6e 2e 0a 0a 31 2e  30 30 20 28 31 32 2d 4a  |ion...1.00 (12-J|
000008d0  61 6e 2d 39 36 29 20 20  20 20 46 69 72 73 74 20  |an-96)    First |
000008e0  6f 66 66 69 63 69 61 6c  20 72 65 6c 65 61 73 65  |official release|
000008f0  20 76 65 72 73 69 6f 6e  2e 0a 0a 31 2e 30 31 20  | version...1.01 |
00000900  28 31 31 2d 4d 61 72 2d  39 36 29 20 20 20 20 56  |(11-Mar-96)    V|
00000910  65 72 73 69 6f 6e 20 6e  75 6d 62 65 72 20 75 70  |ersion number up|
00000920  64 61 74 65 64 20 74 6f  20 6d 61 74 63 68 20 74  |dated to match t|
00000930  68 65 20 6d 6f 64 75 6c  65 2e 0a 0a 31 2e 30 32  |he module...1.02|
00000940  20 28 30 36 2d 41 75 67  2d 39 36 29 20 20 20 20  | (06-Aug-96)    |
00000950  44 61 74 65 20 61 6e 64  20 74 69 6d 65 20 73 74  |Date and time st|
00000960  61 6d 70 73 20 61 72 65  20 70 72 65 73 65 72 76  |amps are preserv|
00000970  65 64 20 6f 6e 20 63 6f  70 69 65 64 20 66 69 6c  |ed on copied fil|
00000980  65 73 2e 0a 20 20 20 20  20 20 20 20 20 20 20 20  |es..            |
00000990  20 20 20 20 20 20 20 20  41 64 64 65 64 20 73 75  |        Added su|
000009a0  70 70 6f 72 74 20 66 6f  72 20 41 63 6f 72 6e 27  |pport for Acorn'|
000009b0  73 20 73 6f 66 74 77 61  72 65 20 50 43 20 65 6d  |s software PC em|
000009c0  75 6c 61 74 6f 72 2e 0a  0a 31 2e 30 33 20 28 32  |ulator...1.03 (2|
000009d0  31 2d 46 65 62 2d 39 37  29 20 20 20 20 53 70 65  |1-Feb-97)    Spe|
000009e0  65 64 65 64 20 75 70 20  74 72 61 6e 73 66 65 72  |eded up transfer|
000009f0  20 77 68 65 6e 20 6d 75  6c 74 69 74 61 73 6b 69  | when multitaski|
00000a00  6e 67 2e 0a 20 20 20 20  20 20 20 20 20 20 20 20  |ng..            |
00000a10  20 20 20 20 20 20 20 20  41 64 64 65 64 20 6f 70  |        Added op|
00000a20  74 69 6f 6e 20 74 6f 20  75 73 65 20 61 20 52 49  |tion to use a RI|
00000a30  53 43 20 4f 53 20 22 53  61 76 65 20 61 73 22 20  |SC OS "Save as" |
00000a40  77 69 6e 64 6f 77 2e 0a  20 20 20 20 20 20 20 20  |window..        |
00000a50  20 20 20 20 20 20 20 20  20 20 20 20 49 6e 63 6c  |            Incl|
00000a60  75 64 65 64 20 73 75 70  70 6f 72 74 20 66 6f 72  |uded support for|
00000a70  20 77 69 6c 64 63 61 72  64 73 20 61 6e 64 20 72  | wildcards and r|
00000a80  65 63 75 72 73 69 6f 6e  2e 0a 0a 31 2e 30 34 20  |ecursion...1.04 |
00000a90  28 30 37 2d 44 65 63 2d  39 37 29 20 20 20 20 56  |(07-Dec-97)    V|
00000aa0  65 72 73 69 6f 6e 20 6e  75 6d 62 65 72 20 75 70  |ersion number up|
00000ab0  64 61 74 65 64 20 74 6f  20 6d 61 74 63 68 20 74  |dated to match t|
00000ac0  68 65 20 6d 6f 64 75 6c  65 2e                    |he module.|
00000aca