Page 1 of 1

Using wildcards for copying files possible?

Posted: Sun 10 Oct 2021 3:34 pm
by LSchenk
Hello,

i would like to copy the files "ExtraLog202110.txt" and "Okt21log.txt" to an external folder for processing the data oth both files with a separate software tool.
For this it would be useful, to have fixed filenames.

Now ist is working if i use the full input filename.
But when next month rises, i have to change the inputfiles to Nov21log.txt and ExtraLog202111.txt and so on each month/year.

To prevent this it would be great, when CMX can create (optionally) two further files in the directory \data\.
Just a simple copy of the actual month files named e.g "act_month_log.txt" and "ExtraLog_act_month.txt", or even better names;-)
In this case, the names don't change and i have no data gaps, till changing.

Would it be possible, to fit an option for this?

Regards

Re: Using wildcards for copying files possible?

Posted: Sun 10 Oct 2021 3:50 pm
by mcrossley
There is already a way of doing this... Use the variables <currentextralogfile> and <currentlogfile>, they will expand to the full file names in both the source and destination fields.

You can also use the variables: <noaamonthfile>, <noaayearfile>, <airlinklogfile>

Re: Using wildcards for copying files possible?

Posted: Sun 10 Oct 2021 4:52 pm
by LSchenk
Thanks a lot, this is a great help!

Re: Using wildcards for copying files possible?

Posted: Sun 10 Oct 2021 9:41 pm
by Phil23
mcrossley wrote: Sun 10 Oct 2021 3:50 pm Use the variables <currentextralogfile> and <currentlogfile>.....
Not quite sure what you are referring to here Mark, I thought it sounds like Environment Variables, but not seeing any that fit.

Re: Using wildcards for copying files possible?

Posted: Mon 11 Oct 2021 1:32 pm
by mcrossley
They are built-in variables that can only be used with Extra Web Files.