Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #312

Re: Reading Date Stamp of a file

From Roger Darlington <rogerarm@freeuk.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Reading Date Stamp of a file
Date 2011-05-19 09:30 +0100
Organization home
Message-ID <03a9bcd551.rogerarm@rogerarm.freeuk.com> (permalink)
References <416aadd251.rogerarm@rogerarm.freeuk.com> <e07bb1d251.graham@durain.demon.co.uk> <d61650d551.rogerarm@rogerarm.freeuk.com> <51d5592e50chrisjohnson+news@spamcop.net>

Show all headers | View raw


On 18 May 2011, Chris Johnson  wrote:
> In article <d61650d551.rogerarm@rogerarm.freeuk.com>,
>    Roger Darlington <rogerarm@freeuk.com> wrote:
>> SYS"OS_File",17,filespec$ TO found%,,load%,exec%,length%

>> PRINT ~load%, ~exec%, length%'

>> NEXT

> You should check the value of found% - if it is 0, object was not
> found, 1 is a file, 2 is a dir, 3 is an image file.

> If found% = 0, then you need to check the contents of filespec$. The
> PRM states that the values of R2, R3, R4, R5 are corrupted if object
> not found (found% = 0).

Many thanks to all respondents, I have now got it going successfully 
:-)

Actually, I can't help thinking that there might have been some clever 
way of hi-jacking the *Copy command to achieve the same end, by making 
it error, trapping the error, and doing my own thing rather than 
letting it copy 'newer', but that is just theoretical now. I have done 
it using one of the above respondents method.


-- 

Cheers
Roger
All who wander are not lost

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 10:55 +0100
  Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 11:20 +0100
    Re: Reading Date Stamp of a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-14 03:10 +0200
  Re: Reading Date Stamp of a file Graham Pickles <graham@durain.demon.co.uk> - 2011-05-13 11:39 +0100
    Re: Reading Date Stamp of a file jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-05-14 00:35 +0100
    Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-18 13:44 +0100
      Re: Reading Date Stamp of a file Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-05-18 15:23 +0100
        Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-19 09:30 +0100
          Re: Reading Date Stamp of a file druck <news@druck.org.uk> - 2011-05-19 21:14 +0100

csiph-web