Please could a charitable sole help me with the code to add a column to the end of a pipeline delimited csv and have every row in the new column contain todays date?
Further background- the data extract I need to update always has the same number of columns, but is ever increasing in rows. The reason I am adding a date is so when I import the data to my system I have an accurate source date for weeding expired data.
With help from another forum i'm currently playing around with:
Code: Select all
@echo off
(for /f "delims=" %%a in (file.csv) do (
echo(%%a|%time%
))>"fileout.csv"