another failed attempt

I saved the command to a new bat file
and called that (no arguments required)

The new bat file works if run from the server console


2009/9/1 AJ Mercer <ajmer...@gmail.com>

> looks like the version on my machine has gotten corupt.
>
> the web server is ok
> but is still timing out
>
> <cfexecute name="\\pc000135\d$\websites\pdf\dirdate.bat"
> arguments="-CREATION year=1968 month=06 day=14 #pdfFile#" variable="dirdate"
> timeout="2" />
>
> *dirdate.bat*
>
>> @ECHO OFF
>>
>> C:\PROGRA~1\DataMy~1\DirDate\dirdate.exe %*
>> rem echo C:\PROGRA~1\DataMy~1\DirDate\dirdate.exe %*
>>
>
>
> If I cut and paste the output from the echo command it works
>
> C:\PROGRA~1\DataMy~1\DirDate\dirdate.exe -CREATION year=1968 month=06
> day=14 d:\websites\pdf\version.pdf
>
>
>
> 2009/9/1 AJ Mercer <ajmer...@gmail.com>
>
> when I run it from the command line
>>
>>> "C:\Program Files\DataMystic\DirDate\dirdate.exe"
>>>
>>
>> I get a popup
>>
>>> dirdate.exe is not a valid Win32 application
>>>
>>
>>
>> 2009/9/1 Dale Fraser <d...@fraser.id.au>
>>
>>  Arguments in cfexecute can be temperamental.
>>>
>>>
>>>
>>> Put it in a bat and just run the bat.
>>>
>>>
>>>
>>> Regards
>>>
>>> Dale Fraser
>>>
>>>
>>>
>>> http://dale.fraser.id.au
>>>
>>> http://learncf.com
>>>
>>> http://flexcf.com
>>>
>>>
>>>
>>> *From:* cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] *On
>>> Behalf Of *AJ Mercer
>>> *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
>>>
>>>
>>> >>>
>>>
>>
>>
>> --
>> AJ Mercer
>> Web Log: http://webonix.net
>>
>
>
>
> --
> AJ Mercer
> Web Log: http://webonix.net
>



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to