On 9/20/2004 5:12:32 PM, Steven Berkowitz wrote:
>What you said in your note is
>exactly correct. I want to
>run this task in/from a batch
>file. I want to open the
>file, replaces nulls with
>spaces, and close the file.
>If you can show me how to do
>that it would be of the
>Thanks in advance for your
There are a couple of ways to do this.
The most general, and easiest is to first create and debug a macro, saving into a file in C:\vedit\user-mac\
In this case this consists of only a single line:-
Replace("|000"," ",BEGIN|ALL|NOERR) // replace nulls by spaces
Then create a batch file which calls this macro
c:\vedit\vpw -q -s2 -x Null2Space.vdm %1
To understand what all the switches do search for "Starting (Invoking) VEDIT" in the help file.
The other way to do this is to include the commands in the batch file.
This is the way I would do this for such a simple task, but it is a little harder to debug, and you need to be careful with strings.
C:\vedit\vpw.exe -q -s2 -c"Replace('|000',' ',BEGIN|ALL|NOERR)" %1
Note the preceding is a single line.