AnsweredAssumed Answered

vrf Geting time of last modification for a file

Question asked by VRFuser on Apr 12, 2001
Latest reply on Apr 12, 2001 by VRFuser
You could use an Execute Program block to get a directory listing of the
file and extract the date and time from that.

On NT use "cmd /c dir [filename] > [tempfile]"

[filename] is the file for which you want info, [tempfile] is a temporary
file name.

then read [tempfile] to get the date and time.

Regards,
Bill Ossmann
--
bill_ossmann@agilent.com
Agilent Technologies
Imaging Systems Division

>-----Original Message-----
>From: John Cahill [mailto:cahillj@lucent.com]
>Sent: Friday, April 13, 2001 5:44 AM
>To: vrf@lvld.agilent.com
>Subject: vrf Geting time of last modification for a file
>
>
>
>
>Hi,
>
>I'm looking for a handy way to get the time a file was last
>modified in UTC
>format, (the same way VEE does). I don't mind writing a
>relatively simple dll in
>C.
>
>I initially thought this was going to be easy then  I had a
>look at MS VC++ time
>functions, (gripe : why do MS have to make everything so
>awkward, I mean a 64
>bit structure for storing  file time info ?)
>
>Thanks in advance.
>
>John Cahill
>Test Engineer,
>Lucent Technologies
>
>Platform information: VEE 5, Windows NT 4.0 SP 6, C compiler
>MS VC++ ver 6.0
>
>
>---------------------------------------------------------------------
>This is the "vrf" maillist, managed by Majordomo.  To send messages to
>this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
>unsubscriptions are done through the address
>"vrf-request@lvld.agilent.com".
>If you need details, just send a message containing the text "help"
>to "vrf-request@lvld.agilent.com".
>---------------------------------------------------------------------
>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes