RE: CFFILE Question

2013-10-24 Thread Kevin Parker
I think a couple of responses you have are on the mark Steve - I had a similar problem only recently and it was because the file was getting deleted before the mail system could process it all. ++ Kevin Parker ++ -Original Message- From: Steve LaBadie

RE: CFFILE Question

2013-10-23 Thread Robert Harrison
I've had this same issue before. I believe the file was being deleted before the mail was fully processed. I think the solution I came up with was to place the file in a temporary directory then run a batch program to delete the files from that directory in the nightly run. Robert Harrison

Re: CFFILE Question

2013-10-23 Thread Russ Michaels
what you have to remember is that the mail gets added to the spool, so it may not get sent for a while depending how big the queue is, so you cannot just delete an attachment right away otherwise you are deleting it immediately even before the mail has even sent. You should setup a scheduled task

Re: CFFILE Question

2013-10-23 Thread Brian Cain
Another alternative, if you are using CF 8 and above, is the content attribute of the cfmailparam tag. You can use this to attache the binary data itself as an attachment, that way you do not have to rely on a file existing on the server at the time the mail is sent. Read the file into a

Re: CFFile Question

2013-01-31 Thread John M Bliss
http://cflib.org/udf/filterFilename On Thu, Jan 31, 2013 at 10:12 AM, Robert Harrison rob...@austin-williams.com wrote: Before I go nuts trying to write a fix for this, I'm hoping maybe someone will know of a simple solution. Seems like it should be simple. I use CFFILE to allow user to

Re: CFFile Question

2013-01-31 Thread Nathan Strutz
You can specify the local file name of the uploaded file as it is uploaded, through the cffile tag's destination= attribute. It's like this: cffile action=upload destination=#expandPath('.')#/#createUUID()# filefield=postfile result=f Good security dictates first that uploaded files should

Re: cffile question

2006-11-12 Thread Jon Clausen
On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1.)In outputting my datetime here, how would I go about adding the AM/PM designation for output? cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created successfully on

Re: cffile question

2006-11-12 Thread Doug Brown
cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created successfully on #DateFormat(CreateODBCDate(myDate), d, )# #timeFormat(myDate, hh:mm:ss:tt)# Doug - Original Message - From: Bob Imperial [EMAIL PROTECTED]

Re: cffile question

2006-11-12 Thread Rick Root
Jon Clausen wrote: On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1.)In outputting my datetime here, how would I go about adding the AM/PM designation for output? cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website directories were created

RE: cffile question

2006-11-12 Thread Bob Imperial
Thanks Doug! Had to be that simple eh ;-) -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 12:38 PM To: CF-Talk Subject: Re: cffile question cfset myDate = now() cffile action=write file=#BaseDir#\index.cfm output=Website

RE: cffile question

2006-11-12 Thread Bob Imperial
brain can come up with is definitely helping things to click for me. Bob -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 12:39 PM To: CF-Talk Subject: Re: cffile question Jon Clausen wrote: On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote: 1

RE: cffile question

2006-11-12 Thread Bob Imperial
Thanks Jon! Using html tags in the output for the read works fine for me, guess I should have thought a little more about the specific tag I was having trouble with. Is it possible to include html tags in the output field for the write? I've tried several ways/locations within the output for the

Re: CFFILE question, rewritten

2004-09-15 Thread Thomas Chiverton
On Wednesday 15 Sep 2004 17:23 pm, mayo wrote: The resulting page should look like the code below: ... link href="" type=text/css rel=stylesheet Construct the contents of the page in a string, then write this string to a file - this will enable you to subsituate as needed. -- Tom Chiverton

Re: CFFILE question, rewritten

2004-09-15 Thread Barney Boisvert
It'll only work if the generated file is a CFM template, but you can just write your standard CFML to the file and it'll be processed. You'll have to escape it while writing though.For example: cfoutput cfsavecontent variable=doc click a href="" to print /cfsavecontent /cfoutput cfset doc =

Re: CFFILE Question????

2004-08-26 Thread Neculai Macarie
Basically I am running a CFQUERY, create the required '|' delimited fields thru Oracle and I want to some how loop of the output, create a file but save it directly to the A: drive.I do not want the file to be created on the server first and then downloaded to the A: drive. Can this be done?

Re: CFFILE Question????

2004-08-26 Thread Ewok
Localy, I dont see whay not. (locally meaning the server itsself) just make all of your cffile destinations point to the A: drive to a clients A: drive... nope - Original Message - From: Ciliotta, Mario To: CF-Talk Sent: Thursday, August 26, 2004 3:42 PM Subject: CFFILE Question

RE: CFFile Question

2004-08-02 Thread Adkins, Randy
Reverse your queries.. You are deleting all data before the image. Thus when you do your SELECT, there is no data to be found. _ From: Donna French [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 12:56 PM To: CF-Talk Subject: CFFile Question Trying to go back and update my web app

Re: CFFile Question

2004-08-02 Thread Joe Rinehart
Donna, I'd reverse the order of your two queries.You're deleting the records, then trying to select them ;) -joe - Original Message - From: Donna French [EMAIL PROTECTED] Date: Mon, 2 Aug 2004 11:56:10 -0500 Subject: CFFile Question To: CF-Talk [EMAIL PROTECTED] Trying to go back and

Re: CFFile Question

2004-08-02 Thread Donna French
Thank you! Works great. Maybe they can hire someone to do the easy stuff - I always complicte the hell out of it!!! Thanks again! Donna - Original Message - From: Adkins, Randy To: CF-Talk Sent: Monday, August 02, 2004 12:04 PM Subject: RE: CFFile Question Reverse your queries.. You

Re: CFFile Question

2004-08-02 Thread brobborb
HAHAHAH HAHAHAHAHAHAHA!!! I remember doing this one time! - Original Message - From: Joe Rinehart To: CF-Talk Sent: Monday, August 02, 2004 12:08 PM Subject: Re: CFFile Question Donna, I'd reverse the order of your two queries.You're deleting the records, then trying to select them

RE: cffile question

2004-06-25 Thread Peterson, Andrew S.
Tony, Are your cfmx services running under the localSystem account or an administrator account? I think that sometimes your LocalSystem account may not have rights to mapped drives, whereas if your CFMX services is running under an administrator account, you'll have better luck. Sincerely,

Re: cffile question

2004-06-25 Thread JediHomer
Have you tried using a UNC path? Also, is CF running as a user that has rights to access it, by default CF runs under LocalSystem so has full access to its own machine and thats all HTH - Original Message - From: Tony Weeg [EMAIL PROTECTED] Date: Fri, 25 Jun 2004 10:43:32 -0400 Subject:

RE: cffile question

2004-06-25 Thread Tony Weeg
can you use unc path in cffile? I didn't know that...ill have to try... thanks. tw -Original Message- From: JediHomer [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:04 AM To: CF-Talk Subject: Re: cffile question Have you tried using a UNC path? Also, is CF running

RE: cffile question

2004-06-25 Thread Tony Weeg
... thanks. tony -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:20 AM To: CF-Talk Subject: RE: cffile question can you use unc path in cffile? I didn't know that...ill have to try... thanks. tw -Original Message- From: JediHomer

RE: cffile question

2004-06-25 Thread Dave Watts
ok I used the unc path, and still the same thing. The SYSTEM account has no rights or access to other servers, via UNC paths or drive mappings. what are the implications if I change the cfmx server to be a different account, other than localSystem?what could happen if I make the change?

RE: cffile question

2004-06-25 Thread Tony Weeg
so I can do it as administrator, and change it in the services panel, and restart, and things should be good? tw -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:46 AM To: CF-Talk Subject: RE: cffile question ok I used the unc path

Re: cffile question

2004-06-25 Thread Joe Rinehart
-0400 Subject: RE: cffile question To: CF-Talk [EMAIL PROTECTED] so I can do it as administrator, and change it in the services panel, and restart, and things should be good? tw -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:46 AM To: CF

Re: CFFILE question

2004-03-22 Thread cf
could always write it to a zip file after writtining to excel I have an excel file that I have written from a query. When clicking on the link to download the file, how do I get it to ask to download it as opposed to opening it in IE? Thanks! [Todays Threads] [This Message]

RE: CFFILE question

2004-03-22 Thread Philip Arnold
From: [EMAIL PROTECTED] I have an excel file that I have written from a query. When clicking on the link to download the file, how do I get it to ask to download it as opposed to opening it in IE? CFCONTENT the file rather than linking to it and change the content type to something like

RE: CFFILE question

2004-03-22 Thread Dave Watts
CFCONTENT the file rather than linking to it and change the content type to something like ZZ, then it'll force a download I'm not sure I understand why you'd specify an unknown MIME type rather than just use the MIME type for arbitrary binary data: application/octet-stream Dave Watts,

RE: CFFILE question

2004-03-22 Thread Philip Arnold
From: Dave Watts I'm not sure I understand why you'd specify an unknown MIME type rather than just use the MIME type for arbitrary binary data: application/octet-stream For me it's a paranoia thing You never know what strange settings a user might have on their browser - if they've tied

RE: CFFILE Question

2004-01-14 Thread Bryan F. Hogan
Instead of cfset use cfsavecontent -Original Message- From: Kelly Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:06 AM To: CF-Talk Subject: CFFILE Question OK I have a form that someone fills out, they hit submit and I present the results.At the same time I need

RE: CFFILE Question

2004-01-14 Thread Bryan F. Hogan
You have a cfoutput right? -Original Message- From: Kelly Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:26 AM To: CF-Talk Subject: Re:CFFILE Question I tried that and that outputs nothing. All the Cf comes through like #form.whatever# and nothing is processed.

RE: CFFILE Question

2003-10-15 Thread Adrian Lynch
Have a look at both cfdirectory and cffile, between them you should be able to do what you want. For more info try http://livedocs.macromedia.com http://livedocs.macromedia.com Ade -Original Message- From: Allan Clarke [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 10:12 To:

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
If the files are big this will eat memory . Consider using the underlying OS to dfo this sort of thing. use cfexecute to run a batch file for instance, e.g. COPY SupportiSearches*.log destinationfile.log That should do exactly what you want, very, very quickly! -Original Message-

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
If you want the cf template to finish quickly you could always exclude timeout value from cfexecute aswell, cf then won't wait for any console output. cfexecute name=mybatchfile.bat / Should do the trick. -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: 15

Re: CFFILE Question

2003-10-15 Thread Calvin Ward
with cfsavecontent to capture the output if you are not using MX 6.1. - Calvin - Original Message - From: Craig Dudley To: CF-Talk Sent: Wednesday, October 15, 2003 5:36 AM Subject: RE: CFFILE Question If you want the cf template to finish quickly you could always exclude timeout value

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
Nope, create a batch file and execute that. Contents of mybatchfile.bat copy D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log D:\CFusionMX\wwwroot\logReport\destination.log /Y (the /Y stops prompting to overwrite existing files) Then.. cfexecute

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
Error number 2 = Can't find file. Try using the full path of the batch file. -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 11:05 To: CF-Talk Subject: Re:CFFILE Question Craig, I don't why I get an error when I run the script on

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
Yes, if you're reading the resultant file straight away, you have to make sure the batch file has finished 1st. (This is exaclty what Calvin suggested) Therefore don't exclude the timeout value on cfexecute. This will show the batch files cmd output... cfexecute

RE: CFFILE Question

2003-10-15 Thread Craig Dudley
cfsilent ?? -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 12:48 To: CF-Talk Subject: Re:CFFILE Question This shows the batch files cmd output but does not error: cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat

RE: CFFILE Question

2003-01-22 Thread Tilbrook, Peter
Have a look at CFFTP. == Peter Tilbrook Internet Applications Developer Australian Building Codes Board GPO Box 9839 CANBERRA ACT 2601 AUSTRALIA WWW: http://www.abcb.gov.au/ E-Mail: [EMAIL PROTECTED] Telephone: (02) 6213 6731 Mobile: 0439 401 823 Facsimile: (02) 6213 7287

RE: CFFile question

2002-08-21 Thread Turetsky, Seth
lets see your code, I've gotten errors like that when not putting the full paths in -Original Message- From: Eric [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 2:05 PM To: CF-Talk Subject: CFFile question has anyone else had this happen? I have a query that finds old

Re: CFFile question

2002-08-21 Thread S . Isaac Dealey
You might want to try setting the ColdFusion Application Server service to run under a user account as opposed to the local system account (default) in Win2k services, particularly if the file in question is on a mapped drive. Afaik the local system account has read-only permissions to the files

RE: CFFile question

2002-08-21 Thread Dave Watts
You might want to try setting the ColdFusion Application Server service to run under a user account as opposed to the local system account (default) in Win2k services, particularly if the file in question is on a mapped drive. Afaik the local system account has read-only permissions to

RE: CFFILE question

2002-06-04 Thread Mark A. Kruger - CFG
Only if you are using an account for cf server and you are logged into that server as that user. It's tricky. Unc paths are easier to work with. Just make sure you have permissions and use: \\servername\sharename\filename Mark -Original Message- From: phumes1 [mailto:[EMAIL

Re: CFFILE question

2002-06-04 Thread Jerry Johnson
What user is CF running under? Does that user have the drive mapped? Do you have rights as that user to that drive? If any of this is too difficult, try using UNC file names rather than relying on mapped drives. (This is my standard answer for any drive mapping questions :) Jerry Johnson

Re: CFFILE question

2002-06-04 Thread phumes1
At 02:35 PM 6/4/2002 -0400, you wrote: What user is CF running under? The user logged in that created the mapped drive letter has Administrator privileges. Does that user have the drive mapped? Yes. Do you have rights as that user to that drive? Administrator If any of this is too

RE: CFFILE question

2002-06-04 Thread Dave Watts
What user is CF running under? The user logged in that created the mapped drive letter has Administrator privileges. That doesn't mean that the user account of the CF server will be able to see the drive mapping. By default, CF runs as SYSTEM, rather than as a specific user. You might

RE: CFFILE question

2002-06-04 Thread Mark A. Kruger - CFG
a different experience with how to get to mapped drives. Mark -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:12 PM To: CF-Talk Subject: RE: CFFILE question What user is CF running under? The user logged in that created the mapped drive

RE: CFFILE question

2002-06-04 Thread Rob Baxter
, June 04, 2002 3:44 PM To: CF-Talk Subject: RE: CFFILE question Yes.. we have found that the cf server must have permissions and running as that user AND That the user himself usually must be logged into the desktop to use a mapped drive. However, UNC mappings should work regardless of whether

RE: CFFILE Question

2000-08-16 Thread Justin Kidman
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_000_01C007DB.49E2089A Content-Type: text/plain; charset="iso-8859-1" Use CFDIRECTORY to get a list of files in the directory, loop

Re: CFFILE question

2000-05-26 Thread Jim McAtee
You're pretty much on your own. CFFILE provides just simple means of modifying and working with files within the file system. For fixed width columns, I usually use the LeftJustify() function, something like: cfset s = "" !--- Loop: add one line per iteration --- cfloop ... cfset s = s