Topic: Wish:A {File,Rename} comand. (1 of 5), Read 37 times
Conf: VEDIT Beta Test
From: Peter Rejto
Date: Wednesday, March 22, 2006 01:21 AM

Hi,

Recently I have been doing a lot of file renaming. I would like to be able to call the Vedit Macro Command, File_Rename( ) from the Vedit {File}-menu.

Thanks,
-peter rejto.

 


Topic: Re: Wish:A {File,Rename} comand. (2 of 5), Read 36 times
Conf: VEDIT Beta Test
From: Ted Green
Date: Wednesday, March 22, 2006 10:52 AM

At 01:21 AM 3/22/2006, you wrote:
>Recently I have been doing a lot of file renaming. I would like to be able to call the Vedit Macro Command, File_Rename( ) from the Vedit {File}-menu.

Peter:

Sorry, but I see little reason to add such trivial functions to VEDIT's menus. There are so many other ways to rename files:

1. Select {FILE, Open}. In the mini-explorer, right-click on a file and select "Rename". Hit [CANCEL] when done.

2. In a DOS box, use the "ren" command, which also has wildcard renaming capabilities.

The recently added {MISC, More macros, Rename files} allows renaming groups of files with full Regular Expression support.

Ted.

 


Topic: Re: Wish:A {File,Rename} comand. (3 of 5), Read 34 times
Conf: VEDIT Beta Test
From: Peter Rejto
Date: Wednesday, March 22, 2006 01:17 PM

On 3/22/2006 10:52:33 AM, Ted Green wrote:
>At 01:21 AM 3/22/2006, you
>wrote:
>>Recently I have been doing a lot of file renaming. I would like to be able to call the Vedit Macro Command, File_Rename( ) from the Vedit {File}-menu.
>
>Peter:
>

>The recently added {MISC, More
>macros, Rename files} allows
>renaming groups of files with
>full Regular Expression
>support.


Thanks Ted:

I overlooked this powerful utility.

Here is my problem:

I would like to rename all .htm files to .html
and keep the ones with .html extension.


Thanks again,

-peter.

 


Topic: Re: Wish:A {File,Rename} comand. (4 of 5), Read 34 times
Conf: VEDIT Beta Test
From: Christian Ziemski
Date: Wednesday, March 22, 2006 02:04 PM

On Wed, 22 Mar 2006 13:17:00 -0500, Peter Rejto wrote:

> On 3/22/2006 10:52:33 AM, Ted Green wrote:
>>
>> The recently added {MISC, More macros, Rename files} allows
>> renaming groups of files with full Regular Expression
>> support.
>
>
>I overlooked this powerful utility.
>
>Here is my problem:
>
>I would like to rename all .htm files to .html
>and keep the ones with .html extension.

Using the above macro:

Select files: (.*)\.htm
Rename to: \1.html

The "test" button should help to check the action before real
execution.


Please note: The above syntax with the () is for the new VEDIT 6.15.
Older VEDITs used curly ones {} for that (as still described in the
examples of the above macro).


Christian

 


Topic: Re: Wish:A {File,Rename} comand. (5 of 5), Read 30 times
Conf: VEDIT Beta Test
From: Peter Rejto
Date: Thursday, March 23, 2006 10:33 AM

On 3/22/2006 2:04:09 PM, Christian Ziemski wrote:
>Using the above macro:
>
>Select files: (.*)\.htm
>Rename to: \1.html
>
>The "test" button should help to check
>the action before real
>execution.

Indeed, this is great!
>
>Please note: The above syntax with the
>() is for the new VEDIT 6.15.
>Older VEDITs used curly ones {} for that
>(as still described in the
>examples of the above macro).

Thanks Christian,

This worked like a charm for me!

Now a self-survey:

At present, I shall not use the full force of this powerfull utility. I shall restrict my self to your special case #1. That is to say, to renaming filename extensions.

Then I shall insert the regular expression strings, (.*).
and \1. into the appropriate Text-Registers. Then, I hope,
that all that I have to do is to type in the old and new
extensions.

These adjustments look pretty minor to my untrained eyes.
If you have the time, I would appreciate your doing them.

If you do not have the time, I shall do it at my own pace, which is pretty slow right now.

Thanks again, for a wonderful utility.

-peter