f



RO Copy options

Some time in RISC OS since I've needed to create an Obey file to do an
action, and after an office refurb a short while ago, my RISC OS
books/manuals are in the loft (Somewhere).

Can someone please give a little assist with some syntax.
Lets say I want an obey file to Copy from one Dir to another.

Copy HostFS::HardDisc4.$.Temp.Fred/txt HostFS::HardDisc4.$.Public.Fred/txt
~F

I remembered the ~F  Force option.

Unfortunately in this naked state, I'm required to interact with the
action, Y/N/Quiet/Abandon.

When I double click the Obey file I just want it to get on with the job
with no additional input from me... Is there an option to do that?

Thanks
Dave

-- 

Dave Triffid
0
Dave
11/6/2016 7:03:55 AM
comp.sys.acorn.misc 5707 articles. 0 followers. michael104 (366) is leader. Post Follow

5 Replies
346 Views

Similar Articles

[PageSpeed] 47

In Nachricht <55daa4f3e9dave@triffid.co.uk>
          Dave Symes <dave@triffid.co.uk> schrieb:

(snip)

> Lets say I want an obey file to Copy from one Dir to another.

> Copy HostFS::HardDisc4.$.Temp.Fred/txt HostFS::HardDisc4.$.Public.Fred/txt
> ~F

> I remembered the ~F  Force option.

> Unfortunately in this naked state, I'm required to interact with the
> action, Y/N/Quiet/Abandon.

> When I double click the Obey file I just want it to get on with the job
> with no additional input from me... Is there an option to do that?

> Thanks
> Dave

Hello!

*help copy listed the following

==> Help on keyword Copy
*Copy copies one or more objects that match the given wildcarded 
specification between directories. Options are taken from the system 
variable Copy$Options and those given to the command.
Options: (use ~ to force off,eg. ~C)
A(ccess)        Force destination access to same as source {on}
C(onfirm)       Prompt for confirmation of each copy {on}
D(elete)        Delete the source object after copy {off}
F(orce)         Force overwriting of existing objects {off}
L(ook)          Look at destination before loading source file {off}
N(ewer)         Copy only if source is more recent than destination 
{off}
P(rompt)        Prompt for the disc to be changed as needed in copy 
{off}
Q(uick)         Use application workspace to speed file transfer {off}
R(ecurse)       Copy subdirectories and contents {off}
S(tamp)         Restamp datestamped files after copying {off}
sT(ructure)     Copy only the directory structure {off}
V(erbose)       Print information on each object copied {on}
Syntax: *Copy <source spec> <destination spec> [<options>]

In your example you the options ~C and ~V seems to be usefull.
~C turns off the confirmation and ~V does not open a task ehhh window 
(?) which requires your action to getting closed.

Instead of use the file type "obey" you can use "taskobey". This will 
also leaves an open window but continues multitasking.


Kind Regards
Hauke
-- 
               *** fatal error - no signatures found ***
0
Hauke
11/6/2016 7:47:44 AM
In message <8df6a8da55.Wegner@risc001>
          Hauke Wegner <mailing-user@my-postbox.eu> wrote:

> In Nachricht <55daa4f3e9dave@triffid.co.uk>
>           Dave Symes <dave@triffid.co.uk> schrieb:

> (snip)

>> Lets say I want an obey file to Copy from one Dir to another.

>> Copy HostFS::HardDisc4.$.Temp.Fred/txt HostFS::HardDisc4.$.Public.Fred/txt
>> ~F

>> I remembered the ~F  Force option.

>> Unfortunately in this naked state, I'm required to interact with the
>> action, Y/N/Quiet/Abandon.

>> When I double click the Obey file I just want it to get on with the job
>> with no additional input from me... Is there an option to do that?

>> Thanks
>> Dave

> Hello!

> *help copy listed the following

> ==> Help on keyword Copy
> *Copy copies one or more objects that match the given wildcarded
> specification between directories. Options are taken from the system
> variable Copy$Options and those given to the command.
> Options: (use ~ to force off,eg. ~C)
> A(ccess)        Force destination access to same as source {on}
> C(onfirm)       Prompt for confirmation of each copy {on}
> D(elete)        Delete the source object after copy {off}
> F(orce)         Force overwriting of existing objects {off}
> L(ook)          Look at destination before loading source file {off}
> N(ewer)         Copy only if source is more recent than destination
> {off}
> P(rompt)        Prompt for the disc to be changed as needed in copy
> {off}
> Q(uick)         Use application workspace to speed file transfer {off}
> R(ecurse)       Copy subdirectories and contents {off}
> S(tamp)         Restamp datestamped files after copying {off}
> sT(ructure)     Copy only the directory structure {off}
> V(erbose)       Print information on each object copied {on}
> Syntax: *Copy <source spec> <destination spec> [<options>]

> In your example you the options ~C and ~V seems to be usefull.
> ~C turns off the confirmation and ~V does not open a task ehhh window
> (?) which requires your action to getting closed.

> Instead of use the file type "obey" you can use "taskobey". This will
> also leaves an open window but continues multitasking.


> Kind Regards
> Hauke

I use ~C F N R S ~V to copy automatically from an A7000 to a 
BeagleBoard

-- 
Mark J
From RISCOS 5.23 on a BeagleBoard-xM and Raspberry Pi2B
- and Linux on a PandaBoard ES and Raspberry Pi3B

0
Mark
11/6/2016 9:21:49 AM
In article <b393b1da55.News@poppy-land.fslife.co.uk>,
   Mark J <mark@poppyland.plu$.com.invalid> wrote:
> In message <8df6a8da55.Wegner@risc001>
>           Hauke Wegner <mailing-user@my-postbox.eu> wrote:

> > In Nachricht <55daa4f3e9dave@triffid.co.uk>
> >           Dave Symes <dave@triffid.co.uk> schrieb:

> > (snip)

> >> Lets say I want an obey file to Copy from one Dir to another.

> >> Copy HostFS::HardDisc4.$.Temp.Fred/txt
> >> HostFS::HardDisc4.$.Public.Fred/txt ~F

> >> I remembered the ~F  Force option.

> >> Unfortunately in this naked state, I'm required to interact with the
> >> action, Y/N/Quiet/Abandon.

> >> When I double click the Obey file I just want it to get on with the
> >> job with no additional input from me... Is there an option to do that?

> >> Thanks
> >> Dave

> > Hello!

> > *help copy listed the following

> > ==> Help on keyword Copy
> > *Copy copies one or more objects that match the given wildcarded
> > specification between directories. Options are taken from the system
> > variable Copy$Options and those given to the command.
> > Options: (use ~ to force off,eg. ~C)
> > A(ccess)        Force destination access to same as source {on}
> > C(onfirm)       Prompt for confirmation of each copy {on}
> > D(elete)        Delete the source object after copy {off}
> > F(orce)         Force overwriting of existing objects {off}
> > L(ook)          Look at destination before loading source file {off}
> > N(ewer)         Copy only if source is more recent than destination
> > {off}
> > P(rompt)        Prompt for the disc to be changed as needed in copy
> > {off}
> > Q(uick)         Use application workspace to speed file transfer {off}
> > R(ecurse)       Copy subdirectories and contents {off}
> > S(tamp)         Restamp datestamped files after copying {off}
> > sT(ructure)     Copy only the directory structure {off}
> > V(erbose)       Print information on each object copied {on}
> > Syntax: *Copy <source spec> <destination spec> [<options>]

> > In your example you the options ~C and ~V seems to be usefull.
> > ~C turns off the confirmation and ~V does not open a task ehhh window
> > (?) which requires your action to getting closed.

> > Instead of use the file type "obey" you can use "taskobey". This will
> > also leaves an open window but continues multitasking.


> > Kind Regards
> > Hauke

> I use ~C F N R S ~V to copy automatically from an A7000 to a 
> BeagleBoard

Thank you both, I now have the info I needed.

Cheers

Dave

-- 

Dave Triffid
0
Dave
11/6/2016 9:49:35 AM
In article <b393b1da55.News@poppy-land.fslife.co.uk>, Mark J
<URL:mailto:mark@poppyland.plu$.com.invalid> wrote:
> In message <8df6a8da55.Wegner@risc001>
>           Hauke Wegner <mailing-user@my-postbox.eu> wrote:
> 
> > *help copy listed the following
> 
> > ==> Help on keyword Copy
> > *Copy copies one or more objects that match the given wildcarded
> > specification between directories. Options are taken from the system
> > variable Copy$Options and those given to the command.
> > Options: (use ~ to force off,eg. ~C)
> > A(ccess)        Force destination access to same as source {on}
> > C(onfirm)       Prompt for confirmation of each copy {on}
> > D(elete)        Delete the source object after copy {off}
> > F(orce)         Force overwriting of existing objects {off}
> > L(ook)          Look at destination before loading source file {off}
> > N(ewer)         Copy only if source is more recent than destination

I was always confused by the F(orce) thinking it meant 'overwrite even if
older' but if that is true how can you have both F(orce) and N(ewer) at the
same time?

Interactive help explains it:
"This indicates if file operations will ignore the lock state of a file"

The *help copy I think would be a lot clearer if it said:
F(orce)         Force overwriting of existing locked objects {off}

and  Interactive help:
"This indicates if file operations will overwrite locked files"


> > {off}
> > P(rompt)        Prompt for the disc to be changed as needed in copy
> > {off}
> > Q(uick)         Use application workspace to speed file transfer {off}
> > R(ecurse)       Copy subdirectories and contents {off}
> > S(tamp)         Restamp datestamped files after copying {off}
> > sT(ructure)     Copy only the directory structure {off}
> > V(erbose)       Print information on each object copied {on}
> > Syntax: *Copy <source spec> <destination spec> [<options>]
> 
> > In your example you the options ~C and ~V seems to be usefull.
> > ~C turns off the confirmation and ~V does not open a task ehhh window
> > (?) which requires your action to getting closed.
> 
> > Instead of use the file type "obey" you can use "taskobey". This will
> > also leaves an open window but continues multitasking.
> 
> 
> > Kind Regards
> > Hauke
> 
> I use ~C F N R S ~V to copy automatically from an A7000 to a 
> BeagleBoard
> 


Chris Evans

-- 

**** IGEPv5: The fastest RISC OS computer so far! ****
--------- http://www.cjemicros.co.uk/igepv5 ----------
CJE Micro's  / 4D                'RISC OS Specialists' 
Telephone: 01903 523222              Fax: 01903 213901
chris@cjemicros.co.uk      http://www.cjemicros.co.uk/ 
78 Brighton Road, Worthing, West Sussex,      BN11 2EN 

Don't let the urgent things in life, crowd out the important things!

0
Chris
11/7/2016 12:30:49 PM
In message <b393b1da55.News@poppy-land.fslife.co.uk>
 on 6 Nov 2016 Mark J  wrote:

> In message <8df6a8da55.Wegner@risc001>
>           Hauke Wegner <mailing-user@my-postbox.eu> wrote:
> 
> > *help copy listed the following
> 
> > ==> Help on keyword Copy
> > *Copy copies one or more objects that match the given wildcarded
> > specification between directories. Options are taken from the system
> > variable Copy$Options and those given to the command.
> > Options: (use ~ to force off,eg. ~C)
> > A(ccess)        Force destination access to same as source {on}
> > C(onfirm)       Prompt for confirmation of each copy {on}
> > D(elete)        Delete the source object after copy {off}
> > F(orce)         Force overwriting of existing objects {off}
> > L(ook)          Look at destination before loading source file {off}
> > N(ewer)         Copy only if source is more recent than destination
> > {off}
> > P(rompt)        Prompt for the disc to be changed as needed in copy
> > {off}
> > Q(uick)         Use application workspace to speed file transfer {off}
> > R(ecurse)       Copy subdirectories and contents {off}
> > S(tamp)         Restamp datestamped files after copying {off}
> > sT(ructure)     Copy only the directory structure {off}
> > V(erbose)       Print information on each object copied {on}
> > Syntax: *Copy <source spec> <destination spec> [<options>]
> 
> I use ~C F N R S ~V to copy automatically from an A7000 to a  BeagleBoard

I personally would not be keen on using the S option: I like the modification
date of a file to be preserved, especially if you are routinely copying with
the N(ewer) option.  If you had three machines involved, then you might have
the following problem:

Machine A: file dated 3 days ago
Machine B: file dated 2 days ago
Machine C: file dated 1 day ago

Copy from machine B to machine A with options N and S.  File from B is newer,
so overwrites file on machine A.  Then S option stamps it with today's date.

Next copy from machine C to machine A with options N and S.  File from C now
appears older than the restamped file that came from B, so the file is not
copied, and we do not end up with the latest file on A.

-- 
Matthew Phillips
Durham
0
Matthew
11/7/2016 8:02:13 PM
Reply: