Topic: Batch File Processing (1 of 10), Read 105 times
Conf: Wildfile, Other macros
From: Jay Daves
Date: Friday, July 19, 2002 11:13 AM

Is there a way I can create a batch file that will start VEDIT, select my files preform a S & R then save the files?

 


Topic: Batch File Processing (2 of 10), Read 99 times
Conf: Wildfile, Other macros
From: Rich Hureau
Date: Sunday, July 21, 2002 10:29 AM

This is pretty much what Wildfile does. Or do you mean you want it to be non-interactive, so you can run it over and over without any prompts, etc?
Rich

 


Topic: Batch File Processing (5 of 10), Read 87 times
Conf: Wildfile, Other macros
From: Ted Green
Date: Wednesday, July 31, 2002 08:49 AM

You can also fully automate Wildfile and run it from a batch file. This is described in the on-line help topic "WILDFILE - Multi-file Processing" and on page 221 of the VEDIT 6.0 User's Manual.

Ted.

 


Topic: Batch File Processing (3 of 10), Read 97 times
Conf: Wildfile, Other macros
From: Pauli Lindgren
Date: Monday, July 29, 2002 10:35 AM

If you want to run some Vedit macro for multiple files using a .bat file, you can create a .bat file that contains commands like this:

  vpw -q -x doit.vdm chapter1.txt
  vpw -q -x doit.vdm chapter2.txt
  vpw -q -x doit.vdm chapter3.txt

If you want to use wildcards instead, you could use something like this in your .bat file:

  for %%name in (*.txt) do vpw -q -x doit.vdm %%name

-- Pauli

 


Topic: Batch File Processing (4 of 10), Read 95 times
Conf: Wildfile, Other macros
From: George Christman
Date: Tuesday, July 30, 2002 12:04 PM


There are many ways to accomplish this.
You can supply your input filenames to your batch file by
placing a "%1" in your batch file like this ...

Batch file "rundoit.bat" will contain ...
vpw -x doit %1

Then you run the batch file like this ...
c:\rundir> rundoit chapter1.txt

You can also modify "doit.vdm" to accept a file name
or file template with either command "get_filename" or
"get_input".

We also have batch files that run the wildfile macro
if you are interested, contact support@...
for a copy.

 


Topic: Batch File Processing (6 of 10), Read 94 times
Conf: Wildfile, Other macros
From: Ted Green
Date: Wednesday, July 31, 2002 08:53 AM

On 7/29/2002 10:35:34 AM, Pauli Lindgren wrote:
>If you want to use wildcards instead, you could use
>something like this in your .bat file:
>
> for %%name in (*.txt) do vpw -q -x doit.vdm %%name

This is an excellent way to process e.g. all the .TXT files in your directory.

Also see "Search/Replace Multiple Files" on pages 104-105 of the VEDIT 6.0 Macro Language Reference Manual.

Ted.

 


Topic: Batch File Processing (7 of 10), Read 99 times
Conf: Wildfile, Other macros
From: Jay Daves
Date: Thursday, August 29, 2002 11:11 AM

I found how to create my batch file. Now my problem is how do I tell it to find "" and delete them. I am taking a text file into a SQL database and the file generator puts "" in the date fields when no date is present. SQL doesn't know what to do with "" in a date field so I have to remove them.

Any help would be greatly appreciated.

Thanks
Jay

 


Topic: Re: Batch File Processing (8 of 10), Read 98 times
Conf: Wildfile, Other macros
From: Christian Ziemski
Date: Thursday, August 29, 2002 04:19 PM

>I found how to create my batch file. Now my problem is how do I tell it= to find ""
>and delete them.

Since you didn't describe the problem exactly we have to guess.

Maybe something like the following would help:

BoF
while(! At_EoF){
Search(/""/, NOERR+ERRBREAK)
BoL
Del_Line(1)
}


Christian

 


Topic: Re: Batch File Processing (9 of 10), Read 104 times
Conf: Wildfile, Other macros
From: Jay Daves
Date: Thursday, August 29, 2002 07:59 PM

Ok, let me see if I can explain my situation. Above Rich mentioned "Did I want to run interactively?" Yes I would like to have a batch file that I can schedule to execute vedit to preform the deletion of the "" from my files.

How do I setup the inp file and the vdm file correctly?

The files all have extensions of csv what other information would you need to be able to assist me on this?

 


Topic: Re: Batch File Processing (10 of 10), Read 111 times
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Thursday, August 29, 2002 09:16 PM

If you want to run interactively why not use the Wildfile wizard.

Even if you want unattended operation use wildfile.

Try the online help which has step by step instructions.