Starting Wildfilew.vdm

Normal call

You can call Wildfilew.vdm with menu command "Misc" → "Load/exec user macro",
or by adding the following command User menu:

  Call_File(100,"wildfilew.vdm")

Wildfilew.vdm then starts and reads default settings from file wildfilw.ini in the Vedit USER-MAC directory. These settings define the options (which dialog to show by default, which directory to use by default etc.), and it also stores the values you have entered in each input field to be used as default on the next run.

After executing, Wildfilew.vdm stores the options and imput values to wildfilw.ini again.

Choosing the .ini file

By default, the wildfilw.ini file is load from Vedit USER-MAC directory. However, you may select different .ini file when calling Wildfilew.vdm.

Put the name of the file in text register 40 and then call label "set_ini".
Or call label "read_ini" if you want not to save the changes in .ini file.

(Note: normally the .ini file is always saved, overwriting the old file, so you will lose any comments you may have in the file.)

Example:
RS(40,"mywf.ini") Call_File(100,"wildfilew.vdm","set_ini")

This is mainly intented for calling wildfilew.vdm from command line or .bat file, but you can for example put the commands in User menu so that you can have different settings for some special purpose.

Calling Wildfilew.vdm from .BAT file

You can call Wildfilew.vdm from a .BAT file to automate your tasks.

Create a dedicated .ini file that selects the operation to perform and input values to be used (for example, "mywf.ini"). Then choose this file as .ini file when calling wildfilew.vdm from a .bat file.

If you have setting opt_dialog=0 in the .ini file, the dialog boxes are not displayed and wildfilew.vdm is executed without user intervention.

Example of command line in .bat file:
c:\vedit\vpw -c'RS(40,"mywf.ini") Call_File(100, "wildfilew.vdm", "read_ini")'


Related topics:

Wildfile - Multi file processing