Rhys666
Programmer
- May 20, 2003
- 1,106
OK. I have a DTS Package that takes dynamic properties from an ini file, and exoprts two tables as flat csv files to a server location. They are the only files within this location.
I have now been asked to append a Date and time stamp to these files, after the data. Basically, after the tables have been exported I need to open each file in the network path and append a string value of 'Date and Time Created:' and the current Datetime to the end of the file.
I know this must be possible with an ActiveX task, and the FileSystemObject, but after having been solely working in c# and ASP.net for just over a year my VB is very,, very poor.
Can anyone help me to be able to get this right?
The path of the folder I can get to a Global variable without a problem, so I need to work out how to use the FileSystemObject to open each file in the location in the string DTS Global Variable holding the value of the path, and then append a string value and the current DateTime to the end of the file, preceded by a line break.
Advice, pointers or solutions accepted willingly.
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.
I have now been asked to append a Date and time stamp to these files, after the data. Basically, after the tables have been exported I need to open each file in the network path and append a string value of 'Date and Time Created:' and the current Datetime to the end of the file.
I know this must be possible with an ActiveX task, and the FileSystemObject, but after having been solely working in c# and ASP.net for just over a year my VB is very,, very poor.
Can anyone help me to be able to get this right?
The path of the folder I can get to a Global variable without a problem, so I need to work out how to use the FileSystemObject to open each file in the location in the string DTS Global Variable holding the value of the path, and then append a string value and the current DateTime to the end of the file, preceded by a line break.
Advice, pointers or solutions accepted willingly.
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.