IanWaterman
Programmer
I am using another Application (Crystal Reports) to generate a CSV file which has a header comprising a String of data 52 characters long. Crystal Reports Server then exports file with an automatically generated file name which includes
DateTime in seconds when file is created.
Due to timing issues I cannot replicate that exact time inside Crystal reports
Ie SQL is executed at 14:10:57 but file may be exported at 14:11:23
Header needs the CSV file name included.
File name will look something like
FRNEXCContactDetails20161104145857.csv
System creates 8 such files with different name eg ContactDetails, AddressDetails all with different date times each day
Does anyone one have any vbs code I can run against all 8 files which takes the file name generated and appends to the end of the header string.
On completion copies the files to another folder so that when next batch comes in next day only those are updated.
The other option if easier is to create file name in crystal and repeat in Footer2 and then use vbs to save file to another folder with new name and delete existing files.
Thanks in advance for your help
Ian
DateTime in seconds when file is created.
Due to timing issues I cannot replicate that exact time inside Crystal reports
Ie SQL is executed at 14:10:57 but file may be exported at 14:11:23
Header needs the CSV file name included.
File name will look something like
FRNEXCContactDetails20161104145857.csv
System creates 8 such files with different name eg ContactDetails, AddressDetails all with different date times each day
Does anyone one have any vbs code I can run against all 8 files which takes the file name generated and appends to the end of the header string.
On completion copies the files to another folder so that when next batch comes in next day only those are updated.
The other option if easier is to create file name in crystal and repeat in Footer2 and then use vbs to save file to another folder with new name and delete existing files.
Thanks in advance for your help
Ian