Topic: Why does Vedit change time on DIRECTORY? (1 of 10), Read 68 times
Conf: Startup, File Open, Exit
From: Reed Darsey
Date: Monday, January 15, 2001 05:35 PM

Why does Vedit Plus (32-bit) change the date time stamp of the directory a file is in, even just viewing the file, and exiting without changing the file?

(I'm in NT4, and even have the HKLM ... FileSystem key "NtfsDisableLastAccessUpdate" set to 1 to prevent things like this.)

 


Topic: Re: Why does Vedit change time on DIRECTORY? (2 of 10), Read 69 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Tuesday, January 16, 2001 06:41 PM

At 05:35 PM 1/15/2001 -0500, you wrote:
>Why does Vedit Plus (32-bit) change the date time stamp of the directory a file is in, even just viewing the file, and exiting without changing the file?

When you open a file, VEDIT also opens a temp file, which after renaming, will become the saved file. If you are sure you only want to view a file, you can open the file in "browse only" mode with the "-b" invocation option or by selecting
"[ ] Read only" in the file-open dialog box.

Ted.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (3 of 10), Read 70 times
Conf: Startup, File Open, Exit
From: Reed Darsey
Date: Wednesday, January 17, 2001 08:59 AM

But the *file* date/time stamp remains
the same -- the directory's changes.

A specific example is if I use Vedit to
look at the file on an NTFS partition:

G:\apps\IMAGEMAT\README.TXT

What happens is that the date/time stamp
for IMAGEMAT is changed to when Vedit
opens the README.TXT file.

The properties for IMAGEMAT show the
original creation time for the
directory, but I'm not sure why
Vedit changes the "Modified" time
that Explorer shows.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (4 of 10), Read 69 times
Conf: Startup, File Open, Exit
From: Pauli Lindgren
Date: Wednesday, January 17, 2001 09:18 AM

On 1/17/2001 8:59:00 AM, Reed Darsey wrote:
>But the *file* date/time stamp remains
>the same -- the directory's changes.

Of course. When Vedit creates the tmp file, the directory is modified. When the tmp file is removed, the directory is modified again.

Another thing is, is it necessary to create the tmp file immediately when the file is opened?

-- Pauli

 


Topic: Re: Why does Vedit change time on DIRECTORY? (6 of 10), Read 68 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Wednesday, January 17, 2001 03:17 PM

At 09:19 AM 1/17/2001 -0500, you wrote:
>Another thing is, is it necessary to create the tmp file immediately when the file is opened?

It probably is not necessary, but it currently would be a lot of work to postpone creating the tmp file. The next time I work on the file handling I will try to implement it; I plan on rewriting some of the file handling later this year.

Ted.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (8 of 10), Read 65 times
Conf: Startup, File Open, Exit
From: Pauli Lindgren
Date: Friday, January 19, 2001 11:38 AM

On 1/17/2001 3:17:33 PM, Ted Green wrote:
>It probably is not necessary, but it
>currently would be a lot of work to
>postpone creating the tmp file. The next
>time I work on the file handling I will
>try to implement it; I plan on rewriting
>some of the file handling later this
>year.

Maybe the tmp file could be created when the file is modified for the first time.

Maybe you could do the file locking at that point, too? That is, as long as the file is not modified, it would not be locked. If some other application would modify the file, Vedit would prompt for reload, as Visual Studio does.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (10 of 10), Read 65 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Friday, January 19, 2001 12:14 PM

At 11:38 AM 1/19/2001 -0500, you wrote:
>Maybe the tmp file could be created when the file is modified for the first time.
>
>Maybe you could do the file locking at that point, too? That is, as long as the file is not modified, it would not be locked. If some other application would modify the file, Vedit would prompt for reload, as Visual Studio does.

These are excellent and very reasonable suggestions which I will probably implement when I work on the file handling later this summer.

Ted.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (5 of 10), Read 68 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Wednesday, January 17, 2001 10:47 AM

At 08:59 AM 1/17/2001 -0500, you wrote:
>But the *file* date/time stamp remains
>the same -- the directory's changes.

Let me state it differently - When you open a file, VEDIT creates a temp file in that directory; therefore the directory's date/time stamp changes. If you then abandon the file, VEDIT deletes the temp file. We are very unlikely to change this behavior.

Ted.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (7 of 10), Read 69 times
Conf: Startup, File Open, Exit
From: Reed Darsey
Date: Thursday, January 18, 2001 01:15 PM

On 1/17/2001 10:47:25 AM, Ted Green wrote:

>Let me state it differently -
>When you open a file, VEDIT creates a
>temp file in that directory; therefore
>the directory's date/time stamp changes.
>If you then abandon the file, VEDIT
>deletes the temp file. We are very
>unlikely to change this behavior.

Since Vedit is my default action for clicking on .TXT files it is the way I usually view the typical README.TXT files.

A quick test just showed that if I make the file Read-Only, then viewing with Vedit doesn't change the directory time stamp. I guess I can do that, in certain cases.

Knowing a directory's time stamp is helpful for troubleshooting, but it is available via Properties, if I really want to know.

 


Topic: Re: Why does Vedit change time on DIRECTORY? (9 of 10), Read 67 times
Conf: Startup, File Open, Exit
From: Pauli Lindgren
Date: Friday, January 19, 2001 11:49 AM

On 1/18/2001 1:15:00 PM, Reed Darsey wrote:
>
>Since Vedit is my default action for
>clicking on .TXT files it is the way I
>usually view the typical README.TXT
>files.

You could change the file association so that Vedit would open in browse mode.

To change file association:
1. Open a folder in "My Computer".
2. View -> Options, "File Types" tab
3. In "Registered file types", select the .txt file type (whatever name it has) and click "Edit"
4. In "Actions" list, select "Open", then click "Edit"
5. In "Application used to perform action" field that contains vpw call, add the option "-b", and perhaps "-i xxx" to disable startup.vdm.

-- Pauli