Topic: Directory Date (1 of 10), Read 40 times, 1 File Attachment
Conf: VEDIT Macro Language Support
From: Ian Binnie
Date: Thursday, May 25, 2006 02:03 AM

On 5/25/2006 1:34:25 AM, Peter Rejto wrote:
>
>I did succeed in making a simple
>adaptation of the ddir example of the
>On-line Help. Now I can sort a directory
>by extension and name. The output is
>similar to the output of the old DOS,
>DIR /Oen, output. (Something I tried to
>replicate in Windows, but could not.)
>To my mind, it illustrates the power of
>the dir_date() Vedit command!
>
While ddir is handy, it only provides Last Write dates.
I often want directory creation dates, so I use the DOS DIR, and process the output with Vedit using the attached macro.

The following bat/cmd file does the job.
It can easily be customised to use any of the file dates, and to combine multiple directories, and process directories/and or files.


dir "c:\Program Files" /a:d /t:c /s > DirectoryCreation.tmp
if exist DirectoryCreation.tmp D:\vedit\vpw -w -s0 -x DirectoryDate.vdm DirectoryCreation.tmp
if exist DirectoryCreation.tmp del DirectoryCreation.tmp

 
DIRECTORYDATE.VDM (3KB)

 


Topic: Re: Directory Date (2 of 10), Read 34 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Thursday, May 25, 2006 09:22 PM

At 02:03 AM 5/25/2006, you wrote:
>While ddir is handy, it only provides Last Write dates.
>I often want directory creation dates, so I use the DOS DIR, and process the output with Vedit using the attached macro.
>
>The following bat/cmd file does the job.
>It can easily be customised to use any of the file dates, and to combine multiple directories, and process directories/and or files.

I will add to the suggestion list an option for Dir_Date() to return the desired date - creation, last-write, last-access. That should be trivial as we get a data structure with all three dates.

Ted.

 


Topic: Directory Date (3 of 10), Read 32 times
Conf: VEDIT Macro Language Support
From: Peter Rejto
Date: Friday, May 26, 2006 11:10 AM

On 5/25/2006 2:03:13 AM, Ian Binnie wrote:

>so I use the DOS DIR, and process the
>output with Vedit using the attached
>macro.

Thanks Ian,

after looking at your macro I wanted to rewrite mine in your style. That is to say, to replace the Vedit dir_date() command by the Win 2k supplied DIR command. I could not do it!

I am still looking at your macro as black magic. So, let me ask a black magic type question: Can you display in Vedit two directories side by side?


Oops. I just noticed we have changed the subject, from Sort_Merge() to Dir_Date(). I do hope that Cristian reads our messages and that he will rectify our oversight.

Thanks to both of you.

-peter.

 


Topic: Re: Directory Date (4 of 10), Read 27 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Friday, May 26, 2006 11:37 AM

On Fri, 26 May 2006 11:10:00 -0400, Peter Rejto wrote:

>Oops. I just noticed we have changed the subject, from Sort_Merge()
>to Dir_Date(). I do hope that Cristian reads our messages and that
>he will rectify our oversight.

Yes, I read them ...

... and moved them to the Macro-Language-Support conference now.
That might be a better home. :-)


Christian

 


Topic: Re: Directory Date (5 of 10), Read 29 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, May 26, 2006 11:54 AM

At 11:38 AM 5/26/2006, you wrote:
>Yes, I read them ...
>
>... and moved them to the Macro-Language-Support conference now.
>That might be a better home. :-)

FYI: We (mostly new employee Jim Jeffries) is making good progress creating the upcoming VEDIT Wiki (using Twiki). The Website's FAQ and a template of this Conference are complete.
After we learn more about administration, permissions, etc., we will make it available for testing.

My "current" thinking is that we will use this Conference (because it supports email) for short messages, but that the real content will be on the Twiki. That way we can delete messages from this conference after a few months without losing anything. In most cases the "threads" are not interesting to new users, only the final result, which will be on the Twiki.

All the VEDIT doco is currently written in my own tagged meta-language. Using VEDIT macros I convert it to either RTF for creation of the on-line help, or to (old) Ventura Publisher for creation of the printed manual and PDF. Next, I will convert it to the Twiki Markup Language so that the entire doco can be "live". If anyone makes (useful) changes, we will add them to the doco source.

Ted.

 


Topic: Re: Directory Date (8 of 10), Read 27 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Monday, May 29, 2006 11:51 AM

Ted:

On 26.05.2006 17:54 in WebBoard's vedit-macro-language you wrote:
>
> We (mostly new employee Jim Jeffries) is making good progress
> creating the upcoming VEDIT Wiki (using Twiki).
> The Website's FAQ and a template of this Conference are complete.
> After we learn more about administration, permissions, etc.,
> we will make it available for testing.
>
> My "current" thinking is that we will use this Conference (because
> it supports email) for short messages,
> but that the real content will be on the Twiki.


Today I surfed around in TWikis plugins and addons once again.

There are many interesting additional features available that way.


For example this one for your (and my) pleasure:
http://twiki.org/cgi-bin/view/Plugins/MailToTWikiAddOn

I haven't tried it yet.
It's not exactly up to date (tested) for the current TWiki 4.0.
Worth a look IMHO!

(But not before the core TWiki is running as expected...)


Independent from such an additional interface I too prefer the
separation of mainly temporary discussion/conversation from
more or less fixed content.

Nevertheless it should be o.k. to discuss Wiki content within Wiki
directly. ;-)


Christian

 


Topic: VEDIT Wiki (9 of 10), Read 27 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Tuesday, May 30, 2006 04:13 AM

Regarding Mail-to-TWiki interface additionally to
- http://twiki.org/cgi-bin/view/Plugins/MailToTWikiAddOn
I found
- http://twiki.org/cgi-bin/view/Plugins/MailInContrib
which is more current and known to work with TWiki4.

Christian

 


Topic: Re: Directory Date (10 of 10), Read 31 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Tuesday, May 30, 2006 10:00 AM

At 11:51 AM 5/29/2006, you wrote:
>Today I surfed around in TWikis plugins and addons once again.
>
>There are many interesting additional features available that way.
>
>For example this one for your (and my) pleasure:
>http://twiki.org/cgi-bin/view/Plugins/MailToTWikiAddOn
>
>I haven't tried it yet.
>It's not exactly up to date (tested) for the current TWiki 4.0.
>Worth a look IMHO!
>
>(But not before the core TWiki is running as expected...)

I will let Jim check into that.

BTW - The author of "T" portion of TWiki has been very reachable
and helpful. He is also available on a contract basis for custom
mods, which we will consider in the future.

Ted.

 


Topic: Directory Date (6 of 10), Read 26 times
Conf: VEDIT Macro Language Support
From: Ian Binnie
Date: Friday, May 26, 2006 09:13 PM

On 5/26/2006 11:10:58 AM, Peter Rejto wrote:
>Thanks Ian,
>
>after looking at your macro I wanted to
>rewrite mine in your style. That is to
>say, to replace the Vedit dir_date()
>command by the Win 2k supplied DIR
>command. I could not do it!

Perhaps I did not make this clear, but I run the Dir (and Vedit) from a batch file, not from within Vedit. (The particular dir parameters require 2K or XP.)

I am sure it could be done from within Vedit, but it is far easier for me to launch from my file manager (ZTreeWin).

As an aside, I have Ztree & Vedit running all the time.
I rarely even open files from within Vedit, I select in ZTree and use it to open in Vedit.
>
>I am still looking at your macro as
>black magic.

Possibly. You get used to your own coding style.
This consists of a few of my standard code fragments, which I use in many of my macros.

The original of this was written in 1996, long before Dir_Date.

If I was doing this today, I would use Dir_Date, particularly if Ted includes creation date. Then I wouldn't have to keep patching for Microsoft changes in format. At the moment I am working on the "if it ain't broke" principle, and using my old macro.

>So, let me ask a black
>magic type question: Can you display in
>Vedit two directories side by side?
>
Peter, I am not sure I understand this question.
It would obviously be possible to have 2 Vedit windows side by side. I am sure that I could use columnar blocks to put in one window, but this would not be very useful, as my path lengths are too long.

It would be useful if you were only looking at the files within 2 directories.

I am assuming you are talking about comparing 2 directories.
While Vedit has a very useful file compare/merge, which I have used many times in the past, I tend to use WinMerge, as this is designed for the purpose (and is free).

If I am just comparing 2 directories I use ZTree and directly compare, without producing a listing. ZTree has very powerful tools to do this kind of thing - something Explorer totally lacks.

 


Topic: Directory Date (7 of 10), Read 27 times
Conf: VEDIT Macro Language Support
From: Peter Rejto
Date: Sunday, May 28, 2006 01:05 AM

On 5/26/2006 9:13:01 PM, Ian Binnie wrote:

>The original of this was written in
>1996, long before Dir_Date.
>
>If I was doing this today, I would use
>Dir_Date, particularly if Ted includes
>creation date. Then I wouldn't have to
>keep patching for Microsoft changes in
>format. At the moment I am working on
>the "if it ain't broke" principle, and
>using my old macro.

So, I should look at your 1996 macro as a first
effort to import the Win\DosBox DIR command into Vedit.
Thank you for sharing it with me. I have learned quite a bit from it!


>While Vedit has a very useful file
>compare/merge, which I have used many
>times in the past, I tend to use
>WinMerge, as this is designed for the
>purpose (and is free).

Thanks Ian,

This is exactly that I needed. I shall download
WinMerge right away.


-peter.