﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Data Transformation Services (DTS)  / ActiveX Task to validate Last modified date of source file / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 01:10:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ActiveX Task to validate Last modified date of source file</title><link>http://www.sqlservercentral.com/Forums/Topic527637-19-1.aspx</link><description>I'm just heading out of the office, so I don't have time to write the script for you, but what you'll need to do is create a file system object so you can access the file and check the file properties.  Here's a great resource for scripting, check out the section on VBscript&amp;gt;&amp;gt;Objects&amp;gt;&amp;gt;FileSystemObject&amp;gt;&amp;gt;GetFile.Sorry to be so short, but you know the old saying....Give a man a fish and he'll eat for a day, teach a man to fish and he'll sit around and drink beer all day (this applies for women too:) ).Oops, here's the link: [url]http://www.devguru.com/utilities/search.asp[/url]</description><pubDate>Wed, 02 Jul 2008 16:31:07 GMT</pubDate><dc:creator>John Rowan</dc:creator></item><item><title>ActiveX Task to validate Last modified date of source file</title><link>http://www.sqlservercentral.com/Forums/Topic527637-19-1.aspx</link><description>I have a DTS package that takes data from a text file and loads it into a table.  The source file does not change names, but it is updated by another process daily.  Before I load the data into my table, I want to verify that the source file has been updated (therefore having a last modified date = today).  I have gotten as far as setting a global variable for the last modified date for the file, but I don't know what to write in the ActiveX code window to verify that the lmd equals today's date.TIA!</description><pubDate>Wed, 02 Jul 2008 14:43:13 GMT</pubDate><dc:creator>julie-631759</dc:creator></item></channel></rss>