Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
*Copy from within a BASIC Wimp task
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Dave Higton  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 20:52
Newsgroups: comp.sys.acorn.programmer
From: Dave Higton <davehig...@dsl.pipex.com>
Date: Wed, 07 Oct 2009 20:52:29 +0100
Local: Wed 7 Oct 2009 20:52
Subject: *Copy from within a BASIC Wimp task
Can someone with the appropriate knowledge please clarify for me
whether it is safe to issue a Copy command from within a Wimp
task (written in BASIC) simply from an OSCLI?

I've searched on the web but I can't see a conclusive answer.

Since I want the Copy operation to be silent, and not to
interrupt operation of the main programme other than for the
time taken to copy (in this case move) the file, I gather
that the other option is to do a Wimp_StartTask for a wrapper
task that issues Wimp_CommandWindow, -1 before issuing the
Copy command.

Dave


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 21:19
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 21:19:12 +0100
Local: Wed 7 Oct 2009 21:19
Subject: Re: *Copy from within a BASIC Wimp task
In article <19bfa7a650.davehig...@dsl.pipex.com>,
   Dave Higton <davehig...@dsl.pipex.com> wrote:

> Can someone with the appropriate knowledge please clarify for me whether
> it is safe to issue a Copy command from within a Wimp task (written in
> BASIC) simply from an OSCLI?

Yes, it's safe. Try to avoid the "quicker" option, as there have been
reports that that causes problems.

> Since I want the Copy operation to be silent, and not to interrupt
> operation of the main programme other than for the time taken to copy (in
> this case move) the file, I gather that the other option is to do a
> Wimp_StartTask for a wrapper task that issues Wimp_CommandWindow, -1
> before issuing the Copy command.

If you are moving a file, you should probably try to rename first, then copy
if that fails (which will be much faster if the rename succeeds). Look up
OS_FSControl in the PRMs or StrongHelp OS manuals.

Ta,

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Higton  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 21:22
Newsgroups: comp.sys.acorn.programmer
From: Dave Higton <davehig...@dsl.pipex.com>
Date: Wed, 07 Oct 2009 21:22:17 +0100
Local: Wed 7 Oct 2009 21:22
Subject: Re: *Copy from within a BASIC Wimp task
In message <50a6aa311bst...@revi11.plus.com>
          "Ste (news)" <st...@revi11.plus.com> wrote:

> In article <19bfa7a650.davehig...@dsl.pipex.com>,
>    Dave Higton <davehig...@dsl.pipex.com> wrote:
> > Can someone with the appropriate knowledge please clarify for me whether
> > it is safe to issue a Copy command from within a Wimp task (written in
> > BASIC) simply from an OSCLI?

> Yes, it's safe. Try to avoid the "quicker" option, as there have been
> reports that that causes problems.

Thanks for that very prompt and authoritative answer!

> > Since I want the Copy operation to be silent, and not to interrupt
> > operation of the main programme other than for the time taken to copy (in
> > this case move) the file, I gather that the other option is to do a
> > Wimp_StartTask for a wrapper task that issues Wimp_CommandWindow, -1
> > before issuing the Copy command.

> If you are moving a file, you should probably try to rename first, then
> copy if that fails (which will be much faster if the rename succeeds). Look
> up OS_FSControl in the PRMs or StrongHelp OS manuals.

Never thought of that.  Thanks for the tip, Steve.

Dave


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 21:28
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 21:28:57 +0100
Local: Wed 7 Oct 2009 21:28
Subject: Re: *Copy from within a BASIC Wimp task
In article <7d79aaa650.davehig...@dsl.pipex.com>,
   Dave Higton <davehig...@dsl.pipex.com> wrote:

> In message <50a6aa311bst...@revi11.plus.com>
>           "Ste (news)" <st...@revi11.plus.com> wrote:
> > If you are moving a file, you should probably try to rename first, then
> > copy if that fails (which will be much faster if the rename succeeds).
> > Look up OS_FSControl in the PRMs or StrongHelp OS manuals.

> Never thought of that.  Thanks for the tip, Steve.

Specifically, OS_FSControl 25 and 26 are the direct equivalents to *Rename
and *Copy (they are what the *commands call). The PRMs/StrongHelp manuals
are a bit cryptic about what the flag bits actually do, however. For
example, I have no idea what "Given times in block" means or why "Look at
destination first" would be an option.

Ta,

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Bazley  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 21:40
Newsgroups: comp.sys.acorn.programmer
From: Martin Bazley <martin.baz...@blueyonder.co.uk>
Date: Wed, 07 Oct 2009 21:40:33 +0100
Local: Wed 7 Oct 2009 21:40
Subject: Re: *Copy from within a BASIC Wimp task
The following bytes were arranged on 7 Oct 2009 by Dave Higton :

> Can someone with the appropriate knowledge please clarify for me
> whether it is safe to issue a Copy command from within a Wimp
> task (written in BASIC) simply from an OSCLI?

I hope so - I've just written a backdrop chooser which does just that.
My computer hasn't exploded yet...

--
  __<^>__   "Your pet, our passion." - Purina
 / _   _ \  "Your potential, our passion." - Microsoft, a few months later
( ( |_| ) )
 \_>   <_/  ======================= Martin Bazley ==========================


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Higton  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 21:41
Newsgroups: comp.sys.acorn.programmer
From: Dave Higton <davehig...@dsl.pipex.com>
Date: Wed, 07 Oct 2009 21:41:23 +0100
Local: Wed 7 Oct 2009 21:41
Subject: Re: *Copy from within a BASIC Wimp task
In message <19bfa7a650.davehig...@dsl.pipex.com>
          Dave Higton <davehig...@dsl.pipex.com> wrote:

> Since I want the Copy operation to be silent, and not to
> interrupt operation of the main programme other than for the
> time taken to copy (in this case move) the file, I gather
> that the other option is to do a Wimp_StartTask for a wrapper
> task that issues Wimp_CommandWindow, -1

... which, experiments show, causes the entire screen to be
redrawn.  Not very nice.  Just in case anyone is thinking of
using the technique.

(And I'm not, thanks to Steve's help.)

Dave


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Wuerthner  
View profile   Translate to Translated (View Original)
 More options 8 Oct, 00:15
Newsgroups: comp.sys.acorn.programmer
From: Martin Wuerthner <spamt...@mw-software.com>
Date: Thu, 08 Oct 2009 01:15:44 +0200
Local: Thurs 8 Oct 2009 00:15
Subject: Re: *Copy from within a BASIC Wimp task
In message <50a6ab159est...@revi11.plus.com>
          "Ste (news)" <st...@revi11.plus.com> wrote:

> In article <7d79aaa650.davehig...@dsl.pipex.com>,
>    Dave Higton <davehig...@dsl.pipex.com> wrote:
>> In message <50a6aa311bst...@revi11.plus.com>
>>           "Ste (news)" <st...@revi11.plus.com> wrote:
>>> If you are moving a file, you should probably try to rename first, then
>>> copy if that fails (which will be much faster if the rename succeeds).
>>> Look up OS_FSControl in the PRMs or StrongHelp OS manuals.

>> Never thought of that.  Thanks for the tip, Steve.
> Specifically, OS_FSControl 25 and 26 are the direct equivalents to *Rename
> and *Copy (they are what the *commands call). The PRMs/StrongHelp manuals
> are a bit cryptic about what the flag bits actually do, however. For
> example, I have no idea what "Given times in block" means or why "Look at
> destination first" would be an option.

"Given times in block" is indeed cryptic in StrongHelp. The PRM
explains that flag though and in my opinion, it is misnamed in
StrongHelp ("in block" usually means stored in a memory block pointed
to by a register). This flag means that only files are copied whose
time stamps fall inside the range defined by r4/r5 and r6/r7 (each
register pair defines a 5 byte time stamp in low/high order).

"Look at destination first" tells the command to first check the
destination to find out whether the source file needs to be copied at
all (e.g., in case it is not newer if the Newer flag is set), before
loading any data from the source file.

Martin
--
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
   ArtWorks 2 -- Designing stunning graphics has never been easier
spamt...@mw-software.com      [replace "spamtrap" by "info" to reply]


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ajw@genesis.net.au  
View profile   Translate to Translated (View Original)
 More options 13 Oct, 13:13
Newsgroups: comp.sys.acorn.programmer
From: "a...@genesis.net.au" <a...@genesis.net.au>
Date: Tue, 13 Oct 2009 05:13:04 -0700 (PDT)
Local: Tues 13 Oct 2009 13:13
Subject: Re: *Copy from within a BASIC Wimp task

> "Look at destination first" tells the command to first check the
> destination to find out whether the source file needs to be copied at
> all (e.g., in case it is not newer if the Newer flag is set), before
> loading any data from the source file.

This primarily helped with really slow file systems such as Econet,
where you really don't want to pointlessly load data.
Alan

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Naulls  
View profile   Translate to Translated (View Original)
 More options 13 Oct, 15:49
Newsgroups: comp.sys.acorn.programmer
From: Peter Naulls <pe...@chocky.org>
Date: Tue, 13 Oct 2009 07:49:19 -0700
Local: Tues 13 Oct 2009 15:49
Subject: Re: *Copy from within a BASIC Wimp task

a...@genesis.net.au wrote:
>> "Look at destination first" tells the command to first check the
>> destination to find out whether the source file needs to be copied at
>> all (e.g., in case it is not newer if the Newer flag is set), before
>> loading any data from the source file.

> This primarily helped with really slow file systems such as Econet,
> where you really don't want to pointlessly load data.
> Alan

Not sure why you'd say this: avoiding copying files you already
have is clearly a huge gain in many cases, especially if you have
most of them already, no matter how fast your filesystem is.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ajw@genesis.net.au  
View profile   Translate to Translated (View Original)
 More options 14 Oct, 02:41
Newsgroups: comp.sys.acorn.programmer
From: "a...@genesis.net.au" <a...@genesis.net.au>
Date: Tue, 13 Oct 2009 18:41:02 -0700 (PDT)
Local: Wed 14 Oct 2009 02:41
Subject: Re: *Copy from within a BASIC Wimp task
On Oct 14, 1:49 am, Peter Naulls <pe...@chocky.org> wrote:

> a...@genesis.net.au wrote:
> >> "Look at destination first" tells the command to first check the
> >> destination to find out whether the source file needs to be copied at
> >> all (e.g., in case it is not newer if the Newer flag is set), before
> >> loading any data from the source file.

> > This primarily helped with really slow file systems such as Econet,
> > where you really don't want to pointlessly load data.
> > Alan

> Not sure why you'd say this: avoiding copying files you already
> have is clearly a huge gain in many cases, especially if you have
> most of them already, no matter how fast your filesystem is.

I agree with you entirely.

The reason I said this is that while I was working for Acorn in
Australia, this particular option was explained to me by somebody from
Acorn UK as existing specifically to help with Econet.

Its just a little historical background rather than anything that
makes much sense in the modern world.

Alan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
druck  
View profile   Translate to Translated (View Original)
 More options 19 Oct, 19:02
Newsgroups: comp.sys.acorn.programmer
From: druck <n...@druck.freeuk.com>
Date: Mon, 19 Oct 2009 19:02:52 +0100
Local: Mon 19 Oct 2009 19:02
Subject: Re: *Copy from within a BASIC Wimp task

Ste (news) wrote:
> In article <19bfa7a650.davehig...@dsl.pipex.com>,
>    Dave Higton <davehig...@dsl.pipex.com> wrote:
>> Can someone with the appropriate knowledge please clarify for me whether
>> it is safe to issue a Copy command from within a Wimp task (written in
>> BASIC) simply from an OSCLI?

> Yes, it's safe. Try to avoid the "quicker" option, as there have been
> reports that that causes problems.

It used to cause application workspace to be used in the copy which
definitely would not be safe. I can't remember if it still does this.

---druc


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Hall  
View profile   Translate to Translated (View Original)
 More options 27 Oct, 11:06
Newsgroups: comp.sys.acorn.programmer
From: Chris Hall <ch...@svrsig.org>
Date: Tue, 27 Oct 2009 11:06:38 GMT
Local: Tues 27 Oct 2009 11:06
Subject: Re: *Copy from within a BASIC Wimp task
In message <4ADCA9CC.6090...@druck.freeuk.com>
          druck <n...@druck.freeuk.com> wrote:

> Ste (news) wrote:
>> In article <19bfa7a650.davehig...@dsl.pipex.com>,
>>    Dave Higton <davehig...@dsl.pipex.com> wrote:
>>> Can someone with the appropriate knowledge please clarify for me whether
>>> it is safe to issue a Copy command from within a Wimp task (written in
>>> BASIC) simply from an OSCLI?

>> Yes, it's safe. Try to avoid the "quicker" option, as there have been
>> reports that that causes problems.
> It used to cause application workspace to be used in the copy which
> definitely would not be safe. I can't remember if it still does this.
> ---druc

I have assumed that when the 'quick' option was added then it only
trampled over workspace if you used the 'quick' option but never saw
any confirmation of this.

--
Chris Hall <ch...@svrsig.org>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google