Re: how to check if a remote file exists
i am a bit confused, this is the first time I do this kind of request so bear with me. I am trying to do the following: i created a cf app on the source server (w2k3) cfquery name=Param datasource=lib_datasql SELECT proxloc from MainServer /cfquery cfset fname=#param.proxloc#\@conv_#dateformat(dateadd(d,-1,now()),'dd-mm-')#.txt cfif FileExists(#fname#) (the above will check for the file and find it) then i need to copy the file to the cf server and work with it, that's were you lost me. cfelse not found /cfif ok, so then how would I do the copy from w2k3 to cf9 server You would use CFHTTP to grab the content from the other server, and then save it as a file on your CF9 server. Personally I would do a separate CF app, scheduled in the CF administrator, that would periodically look for the file on the other server, and if it is there, grab it and download it. Then when your aggregation app runs, it just has to worry about content on your server. YMMV of course - I'm looking at it from the perspective of an application I worked on where the other server wasn't that reliable, and separating the grab files from the other server and process files helped troubleshooting tremendously. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358252 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: how to check if a remote file exists
thanks for the info ok, so then how would I do the copy from w2k3 to cf9 server ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358243 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
how to check if a remote file exists
hi, i have w2k3 server that holds a text file, say x.txt, generated by an VFP9 app., on a separate server i have a cf9 app. that needs to check for file x, if it exists get a copy of it and merge it with another text file that is generated by the app. well, how can i do the checking part? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358220 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: difference in displaying a numeric value in POI
if this is poi:cell type=numeric numberformat=##,0.00 value=1075483609/ rounding,how would the ...609 round to ...648 One is rounding and one is doing an Integer function hi, i am trying to write a numeric value using POI and i get the strange results: poi:cell type=numeric numberformat=##,0.00 value=1075483609/ cfset x=#NumberFormat('1075483609','999,999,999,999.99')# poi:cell type=string value=#x#/ if you run the above you get 1,075,483,648.00 1,075,483,609.00 respectively. notice that the last three digits are different, can someone explain this? thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353874 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
difference in displaying a numeric value in POI
hi, i am trying to write a numeric value using POI and i get the strange results: poi:cell type=numeric numberformat=##,0.00 value=1075483609/ cfset x=#NumberFormat('1075483609','999,999,999,999.99')# poi:cell type=string value=#x#/ if you run the above you get 1,075,483,648.00 1,075,483,609.00 respectively. notice that the last three digits are different, can someone explain this? thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353849 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdocument not displaying arabic font [spamtrap bayes][spamtrap heur]
without cfdocument it works fine. so anyway i tried utf-8, at least something gets displayed but as such ARABIC TEXT PRINT TEST ا٠ص٠ة اÙ٠دÙÙØ© there are some missing characters ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338664 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfdocument not displaying arabic font
hi, i am trying the following code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; cfprocessingdirective pageencoding = windows-1256 cfset SetEncoding(form,windows-1256) cfset SetEncoding(url,windows-1256) cfcontent type=text/html; charset=windows-1256 cfsavecontent variable=MyPage head titlePRINT TEST/title /head body table width=810 border=0 tr td width=225 div align=centerstrongARABIC TEXT PRINT TEST /strong/div/td td width=225 div align=centerstrongspan dir=rtl style=font:'Simplified Arabic'; font-size:16pxÙظا٠بص٠ة اÙÙج٠Ù٠دÙÙØ©/span/strong/div/td /tr /table /body /html /cfsavecontent cfif not(isdefined(url.DISPLAY)) cfdocument format=pdf filename=files\print_test_cf.pdf overwrite=yes cfoutput#mypage#/cfoutput /cfdocument cfelse cfoutput#mypage#/cfoutput /cfif and i am getting this result ARABIC TEXT PRINT TEST © ظâØ· Ë Ø¸Â¯ ظ⡠ظپظٹ Ø· ¬ Ø·Ë Ø¸âظ § Ø· © ظâ¦Ø· μ ط¨ ظ⦠ط § ط¸ ظâ Ø· you will notice that the Arabic font is not displayed properly. what gives? thanking you in advance for your insight ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338638 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: PGP and CF
When you run the batch file yourself, you apparently have sufficient rights to do so. The user account that CF is running as does not. You can test this by changing CF to run as your user account since you know that account has no issue running the batch file. If it works, you should be able to adjust the CF service's group memberships to match your account's or change the CF service to run as a user with sufficient privileges. that sounds about right, but since i am a newbie to all this CF and PGP, how do you do that? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329890 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4