Somewhere I am missing something. Here is some code:

<CFSET ThisPath = ExpandPath("*.*")>
         <CFSET ThisDirectory = GetDirectoryFromPath(ThisPath)>
         <CFSET HTTPSaveFile = "doeivinfaq.html">
         <CFIF NOT FileExists("#ThisDirectory#/#HTTPSaveFile#")>
                 <CFHTTP 
URL="http://www.doe.state.in.us/media/video/faq.html"; METHOD="Get" 
Path="#ThisDirectory#" File="#HTTPSaveFile#"></CFHTTP>
         </CFIF>

<CFIF FileExists("#ThisDirectory#/#HTTPSaveFile#")>
                 <CFDIRECTORY Action="List" Name="IVIN" 
DIRECTORY="#ThisDirectory#/#HTTPSaveFile#">
                 <CFOUTPUT>
                         <P>#IVIN.Name#
                         <P>#IVIN.Size#
                         <P>#IVIN.Type#
                         <P>#IVIN.DateLastModified#
                         <P>#IVIN.Attributes#
                         <P>#IVIN.Mode#
                 </CFOUTPUT>
                 <CFEXIT>

With my above <CFDIRECTORY> if I remove the #HTTPSaveFile# I will get the 
<CFOUTPUT> on the directory, however when I add it for the specific 
filename, I get a blank page.



> > I want
> > to test the date of the file and if the date of the saved
> > file is greater
> > than 7 days acquire a new copy and save it again on my drive.
>
>cfdirectory should solve the file creation date problem.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to