if you are on a windows machine and on a 32 bit platform i would recommend just using the COM object and accessing the <cfscript> fso = CreateObject("COM", "Scripting.FileSystemObject"); f = fso.GetFile([filePath[); </cfscript> <cfoutput>#f.DateCreated#</cfoutput>
_____ From: AJ Mercer [mailto:ajmer...@gmail.com] Sent: Tuesday, 1 September 2009 3:33 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: set file created date with ColdFusion I am going do with path as it looks like a workable solution but cfexecute is giving me grief <cfexecute name="C:\PROGRA~1\DataMy~1\DirDate\dirdate.exe" arguments="/?" variable="dirdate" timeout="5" /> returns *** DirDate 30 day evaluation copy *** But whenI change arguments to change the created date it times out If I cut and past the name and arguments portions into a DOS command line it works I am running CF as a named user and that user has full control permissions on dirdate.exe I have rebooted the server <cfexecute name="C:\PROGRA~1\DataMy~1\DirDate\dirdate.exe" arguments="-CREATION year=1968 month=06 day=14 d:\websites\pdf\version.pdf" variable="dirdate" timeout="5" /> Any suggestions / ideas? 2009/8/31 <phad...@formstar.com> On Mon, Aug 31, 2009 at 02:43:43PM +0800, AJ Mercer wrote: > see attached screenshot > > I would like to set the highlighted property If .Net doesn't have the ability, and you can cfexecute, check out programs such as DirDate: http://www.datamystic.com/dirdate.html Just one of many. Cheers Paul Haddon Technical Services Manager Formstar Print Technologies -- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---