Topic: Wildfile Enhancement (1 of 4), Read 45 times, 2 File Attachments
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Wednesday, July 14, 2004 01:24 AM

I propose a change to WILDFILE.VDM
I have not sent the whole file, the change is:-

Insert the following line at line 325:-
Replace('"','',BEGIN|ALL|NOERR) // IB 22/06/04 remove quotes from file name (for redirected input)

between the following 2 lines of the original:-
Reg_Ins(#95)
#70 = Replace("|W-s|[|W]|>","",BEGIN+NOERR) // Check for subtree search option -s

This change in no way affects the current operation of WILDFILE, but enables the use of an input redirection file generated by an external application. The change permits input lines with long filenames delimited by quotes.

(I am using ZTreeWin to send a set of tagged files to Vedit to execute a macro. Previously I had been forced to use short filenames.)


The supplied autowild.bat uses ` (0x60) as delimiters rather than ' (0x27) and does not work.

The supplied wildfile.inp also contains an error
The line:-
" ! Blank line ends file selection"
does not work, a totally empty line is needed

 
AUTOWILD.BAT (1KB)
 
WILDFILE.INP (1KB)

 


Topic: Re: Wildfile Enhancement (2 of 4), Read 48 times
Conf: Wildfile, Other macros
From: Ted Green
Date: Wednesday, July 14, 2004 07:03 PM

At 01:25 AM 7/14/2004, you wrote:
>I propose a change to WILDFILE.VDM
>I have not sent the whole file, the change is:-

Ian:

I have made your requested change in Wildfile.

>The supplied autowild.bat uses ` (0x60) as delimiters rather than ' (0x27) and does not work.

You are correct! I changed the code so that back-quote now works. I also updated the on-line help file for the next release. A new vpw.exe is at:

www.vedit.com/download/vpw.exe

>The supplied wildfile.inp also contains an error
>The line:-
>" ! Blank line ends file selection"
>does not work, a totally empty line is needed

I cannot replicate that problem. The code should "eat" any comments and therefore allow the wildfile.inp as-is.

I ran autowild.bat with wildfile.inp and it worked OK. However, it does now prompt whether the search.tmp file should be saved. wildfile.vdm should probably be changed to skip this prompt when an input-redirection file is running.

Ted.

 


Topic: Re: Wildfile Enhancement (3 of 4), Read 47 times
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Thursday, July 15, 2004 04:02 AM

On 7/14/2004 7:03:55 PM, Ted Green wrote:
>At 01:25 AM 7/14/2004, you
>wrote:
>>The supplied wildfile.inp also contains an error
>>The line:-
>>" ! Blank line ends file selection"
>>does not work, a totally empty line is needed
>
>I cannot replicate that
>problem. The code should "eat"
>any comments and therefore
>allow the wildfile.inp as-is.

I tested this again, and it works OK with VEDIT (32-Bit) Ver. 6.12.2 07/01/04

I was having a lot of problems with an application, in particular how to generate the blank input line.

I can no longer explain why.

Incidentally I found it desirable to include "-s2" in the command line (admittedly with a complex macro).

vpw -e -s2 -c'rinp("wildfile.inp") call_file(100,"wildfile.vdm")'

 


Topic: Re: Wildfile Enhancement (4 of 4), Read 48 times
Conf: Wildfile, Other macros
From: Ted Green
Date: Thursday, July 15, 2004 10:25 AM

At 04:02 AM 7/15/2004, you wrote:
>I tested this again, and it works OK with VEDIT (32-Bit) Ver. 6.12.2 07/01/04
>
>I was having a lot of problems with an application, in particular how to generate the blank input line.
>
>I can no longer explain why.

I'm actually surprised that VEDIT works as well as it does in Australia, with clocks and everything going counter-clockwise, and all that. ;-))

>Incidentally I found it desirable to include "-s2" in the command line (admittedly with a complex macro).
>
>vpw -e -s2 -c'rinp("wildfile.inp") call_file(100,"wildfile.vdm")'

I agree and have added the "-s2" to the autowild.bat file.

("-s2" disables the DDE support so that Explorer selected files do not open in this instance of VEDIT.)

Ted.