I have a batch file, it's adding a text line every day (see below) to a csv file.
In the line there is a date, this date has to be changed each day and it's has to be the date of yesterday. And on Monday it's has to be the date of Friday. When the date change is done, the line has to be added in the file.
I don't know how to do it, i know there are commando's to change date. I have searched on internet and on this forum but i could not find it. Hope that some body can help me.
for %%j in (C:\blp\bbdl\_csv\dailycurrency1.out.????????.csv) do @echo."EUR CMPN Curncy|0|4|EUR|12/03/2012|Composite(NY)|1.000000|">> %%j