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


Groups > comp.lang.clipper.visual-objects > #5325 > unrolled thread

how to know de time stamp of a file while ffirst return false ?

Started byjls@igsoft.be
First post2013-06-05 02:43 -0700
Last post2013-06-10 07:47 +0000
Articles 10 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 02:43 -0700
    Re: how to know de time stamp of a file while ffirst return false ? "Jamal" <jamal@examples.net> - 2013-06-05 09:38 -0400
      Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 08:20 -0700
        Re: how to know de time stamp of a file while ffirst return false ? "Jamal" <jamal@examples.net> - 2013-06-05 14:18 -0400
          Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 15:07 -0700
            Re: how to know de time stamp of a file while ffirst return false ? "Karl-Heinz" <invalid@invalid.invalid> - 2013-06-06 09:55 +0200
    Re: how to know de time stamp of a file while ffirst return false ? dlzc <dlzc1@cox.net> - 2013-06-06 07:20 -0700
      Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-07 01:28 -0700
        Re: how to know de time stamp of a file while ffirst return false ? dlzc <dlzc1@cox.net> - 2013-06-07 06:59 -0700
    Re: how to know de time stamp of a file while ffirst return false ? "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-06-10 07:47 +0000

#5325 — how to know de time stamp of a file while ffirst return false ?

Fromjls@igsoft.be
Date2013-06-05 02:43 -0700
Subjecthow to know de time stamp of a file while ffirst return false ?
Message-ID<453d0b3f-1bc1-4b25-bc9b-9cfeb9b4da42@googlegroups.com>
all is in the title...

It doesn't happend in every environment, but only sometimes...

Ffirst return false while the file really exist.

The problem is that I have to know the timestamp of the file...

How can I do ?


Jean-Luc

[toc] | [next] | [standalone]


#5326

From"Jamal" <jamal@examples.net>
Date2013-06-05 09:38 -0400
Message-ID<konevp$q78$1@speranza.aioe.org>
In reply to#5325
http://comp.lang.clipper.visual-objects.free-usenet.eu/ffirst-return-false-while-file-is-there_T66554358_S1

Jamal

wrote in message 
news:453d0b3f-1bc1-4b25-bc9b-9cfeb9b4da42@googlegroups.com...

all is in the title...

It doesn't happend in every environment, but only sometimes...

Ffirst return false while the file really exist.

The problem is that I have to know the timestamp of the file...

How can I do ?


Jean-Luc 

[toc] | [prev] | [next] | [standalone]


#5328

Fromjls@igsoft.be
Date2013-06-05 08:20 -0700
Message-ID<be4e30bb-57dd-42fe-89bc-7bd4f5ac239a@googlegroups.com>
In reply to#5326
Hello Jamal

Thank you for your answer.
I already seen that post.
But I need to know the timestamp of the file ! That's why I use Ffirst() and Fdate()

Jean-Luc

[toc] | [prev] | [next] | [standalone]


#5329

From"Jamal" <jamal@examples.net>
Date2013-06-05 14:18 -0400
Message-ID<konvd5$8ds$1@speranza.aioe.org>
In reply to#5328
How about FDate() + FTime() ?

Jamal

wrote in message 
news:be4e30bb-57dd-42fe-89bc-7bd4f5ac239a@googlegroups.com...

Hello Jamal

Thank you for your answer.
I already seen that post.
But I need to know the timestamp of the file ! That's why I use Ffirst() and 
Fdate()

Jean-Luc 

[toc] | [prev] | [next] | [standalone]


#5330

Fromjls@igsoft.be
Date2013-06-05 15:07 -0700
Message-ID<d30cc4a3-178b-4094-999b-7d41b8a565f4@googlegroups.com>
In reply to#5329
Yes, but to use Fdate() I have to to use Ffirst() first !

fDate():
Return the date stamp of the file found by FFCount(), FFirst(), or FNext().

And FFirst says the file is not there !

Jean-Luc

[toc] | [prev] | [next] | [standalone]


#5331

From"Karl-Heinz" <invalid@invalid.invalid>
Date2013-06-06 09:55 +0200
Message-ID<b1atjjF5i74U1@mid.individual.net>
In reply to#5330
Hi Jean-Luc,

> fDate():
> Return the date stamp of the file found by FFCount(), FFirst(), or
> FNext().
>
> And FFirst says the file is not there !
>

Not sure what you finally need: Timestamp or Datestamp ?  Anyway, the Func
below uses the WIN-API directly and gives you both ;-)

BTW.  GetFDate() and GetFTime()  are VO buildin functions.

Regards
Karl-Heinz

--------------------------------------------------------

FUNCTION GetFileDateTime ( cFileName AS STRING , dDate REF DATE , cTime REF
STRING  ) AS LOGIC PASCAL
LOCAL struFindData IS _winWIN32_FIND_DATA
LOCAL hFile AS PTR
LOCAL lOK AS LOGIC

 IF ( hFile := FindFirstFile( String2Psz ( cFileName ) , @struFindData) )
!= INVALID_HANDLE_VALUE

  lOK := TRUE

  dDate := GetFDate( @struFindData.ftLastWriteTime )


  cTime := GetFTime( @struFindData.ftLastWriteTime )


  FindClose ( hFile )

 ENDIF


  RETURN lOK

[toc] | [prev] | [next] | [standalone]


#5336

Fromdlzc <dlzc1@cox.net>
Date2013-06-06 07:20 -0700
Message-ID<b28114b3-67f7-4043-ad6a-9a94ecc22ef7@googlegroups.com>
In reply to#5325
Dear j...:

On Wednesday, June 5, 2013 2:43:55 AM UTC-7, j...@igsoft.be wrote:
...
> It doesn't happend in every environment, but only
> sometimes...
> Ffirst return false while the file really exist.

When it fails to work, is there, or is there not, a hidden file in that directory called "desktop.ini"?

David A. Smith

[toc] | [prev] | [next] | [standalone]


#5340

Fromjls@igsoft.be
Date2013-06-07 01:28 -0700
Message-ID<02e4a858-9d1f-44a1-bcae-272da7d15e40@googlegroups.com>
In reply to#5336
David,
I will look is there is a hidden file called "desktop.ini"

Karl-Heinz,
Thank you, yes I need to fetch the date and the time of the file to know if it's newer...
I will try your function..

Jean-Luc



Le jeudi 6 juin 2013 16:20:39 UTC+2, dlzc a écrit :
> Dear j...:
> 
> 
> 
> On Wednesday, June 5, 2013 2:43:55 AM UTC-7, j...@igsoft.be wrote:
> 
> ...
> 
> > It doesn't happend in every environment, but only
> 
> > sometimes...
> 
> > Ffirst return false while the file really exist.
> 
> 
> 
> When it fails to work, is there, or is there not, a hidden file in that directory called "desktop.ini"?
> 
> 
> 
> David A. Smith

[toc] | [prev] | [next] | [standalone]


#5341

Fromdlzc <dlzc1@cox.net>
Date2013-06-07 06:59 -0700
Message-ID<378cd495-e077-4dfa-8a15-1b0e6610b387@googlegroups.com>
In reply to#5340
Dear j...:

On Friday, June 7, 2013 1:28:10 AM UTC-7, j...@igsoft.be wrote:
> I will look is there is a hidden file called
> "desktop.ini"

If you look using Windows, there will be as soon as you look.  You might create a new directory, add a file, then use your ffirst function to see if it smokes.

Then open the directory, drop in a couple of pictures, double click on the pictures (at this point I think Explorer makes this file).  Then try your program to see if it smokes.

Not so much that this will do anything more than point the folks that might make VO 2.9, to a fix... and that if you report your results.

David A. Smith

[toc] | [prev] | [next] | [standalone]


#5342

From"Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be>
Date2013-06-10 07:47 +0000
Message-ID<kp40a2$65a$1@dont-email.me>
In reply to#5325
Jean Luc,

Why not using the function Directory(...)
This returns an array with all information about that specific file...
It can also 'see' hidden and system files...

Dirk, Belgium

=================================


jls@igsoft.be wrote:

> all is in the title...
> 
> It doesn't happend in every environment, but only sometimes...
> 
> Ffirst return false while the file really exist.
> 
> The problem is that I have to know the timestamp of the file...
> 
> How can I do ?
> 
> 
> Jean-Luc



-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web