Re: IDL Windows Question [message #77069] |
Tue, 02 August 2011 04:29  |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Mon, 1 Aug 2011 12:07:04 -0600, David Fanning <news@idlcoyote.com>
wrote:
> This is Windows 7 with all updates running IDL 7.1.
> Any ideas about this?
A file has three different timestamps
1. File-Create time
2. Last-Modify (Last-Write) time
3. Last-Access time
From the examples below you see that the timestamps get updated
(marked with *) as you would expect:
A. Create a new PNG file
write_png,'c:\testimage.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:19:52
2. dinsdag 2 augustus 2011, 13:19:52
3. dinsdag 2 augustus 2011, 13:19:52
B. Create a PNG file with the same name
write_png,'c:\testimage.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:19:52
2. dinsdag 2 augustus 2011, 13:20:11 (*)
3. dinsdag 2 augustus 2011, 13:20:11 (*)
C. Create a new PNG file
write_png,'c:\image.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:12:52
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:12:52
D. Copy the file
file_copy,'c:\image.png','c:\image2.png'
1. dinsdag 2 augustus 2011, 13:15:35 (*)
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:15:35 (*)
(image.png timestamps not changed)
E. Move the file
file_move,'c:\image2.png','c:\image3.png'
1. dinsdag 2 augustus 2011, 13:15:35
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:16:49 (*)
|
|
|
|
Re: IDL Windows Question [message #77072 is a reply to message #77071] |
Mon, 01 August 2011 13:46   |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article <MPG.28a09930b95b482f98991c@news.giganews.com>,
David Fanning <news@idlcoyote.com> wrote:
> Folks,
>
> This isn't an IDL question per se, I don't thing, but it
> happens when I am using IDL.
>
> Suppose I have a PNG file named "test.png" in a directory.
> Suppose I created the file last week, which is reflected
> in the time stamp of the file.
>
> If I run the program that creates this program today,
> the PNG file gets created OK, but the time stamp does
> NOT get updated. Even if I "refresh" the File Explorer
> window, it retains the date from last week. If I delete
> the file first, then the file is created with the proper
> time stamp.
>
> This is Windows 7 with all updates running IDL 7.1.
> Any ideas about this?
>
> Thanks,
>
> David
I don't know anything about Windows, but I assume there is some
underlying metadata in the filesystem that resembles what Unix/Linux
provides.
Are you looking at the creation date or the modification date?
Ken
|
|
|
|