What version of Coldfusion are you using? Because it works fine on 8. Paul
-----Original Message----- From: David Koehler [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 December 2008 8:46 AM To: cf-newbie Subject: Re: Date Timestamp Paul, I tried this using: <cfdirectory action="list" directory="C:\inetpub\wwwroot\" name="z" filter="test.csv"> <cfdump var="#z#"> <cfoutput query="z"> Name: #name# DateLastModified: #DateLastModified# <br> </cfoutput> and this is what I get: Name: #name# DateLastModified: #DateLastModified# It's as if the cfdirectory tag isn't working. Any thoughts? Also, my CF Studio 4.5 doesn't seem to know what cfdump is. It doesn't throw an error but when I try to show HELP for that tag, it throws an error then. Dave >CF Directory action="list" will return the last modified date. > >Use a filter to narrow it down to the file your after > ><cfdirectory action="list" directory="c:\" name="z" >filer="myCustomerData.csv" /> ><cfdump var="#z#"/> ><cfoutput query="z"> >Name: #name# DateLastModified: #DateLastModified# <br /> ></cfoutput> > > >Paul K > > >A client uploads a file to our server daily and we then grab it and post its >data. Sometimes the client forgets to do the upload and we're grabbing the >same file from the previous upload. Not a real problem but we want to know >when this happens. > >I'm looking for an easy way to check that files date and time to match the >current date. If so, great, if not, I want to be emailed with a warning. > >Any sweet easy way to do this? > >Thanks in advance, > >Dave ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4219 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
