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 [mailto:slaba...@po-box.esu.edu] 
Sent: Thursday, 24 October 2013 12:08 AM
To: cf-talk
Subject: CFFILE Question


I have a web-based form that requires the user to upload a document.
Everything works fine until I try and delete the document after delivery.
With the delete action enabled the email does not get delivered. I have
place the action=delete inside and outside of the /cfmail

cfif isDefined(form.attached) AND form.attached NEQ  cffile
action=upload destination=f:\inetpub\wwwroot\..\..\upload
mode=644 nameConflict=overwrite fileField=form.attached cfset
attachment=f:\inetpub\wwwroot\..\..\upload\#cffile.serverFile#
/cfif
cfprocessingdirective suppresswhitespace=no
cfmail from=#..# to=#..# subject=
type=html
cfsilentcfif FORM.attached neq
cfmailparam file=#attachment# //cfif/cfsilent /cfmail

cfif isDefined(form.attached) AND form.attached NEQ 
cffile action=Delete file=#attachment#
/cfif

Steve LaBadie, Web Manager
East Stroudsburg University
570-422-3999
slaba...@esu.edumailto:slaba...@esu.edu

[facebook-16x16]http://www.facebook.com/eaststroudsburguniversity
[twitter-16x16] http://twitter.com/esuniversity   [youtube-16x16]
http://www.youtube.com/user/esuedu





~|
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:356968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFFILE Question

2013-10-23 Thread Steve LaBadie

I have a web-based form that requires the user to upload a document. Everything 
works fine until I try and delete the document after delivery. With the delete 
action enabled the email does not get delivered. I have place the action=delete 
inside and outside of the /cfmail

cfif isDefined(form.attached) AND form.attached NEQ 
cffile action=upload destination=f:\inetpub\wwwroot\..\..\upload 
mode=644 nameConflict=overwrite fileField=form.attached
cfset attachment=f:\inetpub\wwwroot\..\..\upload\#cffile.serverFile#
/cfif
cfprocessingdirective suppresswhitespace=no
cfmail from=#..# to=#..# subject= type=html
cfsilentcfif FORM.attached neq 
cfmailparam file=#attachment# //cfif/cfsilent
/cfmail

cfif isDefined(form.attached) AND form.attached NEQ 
cffile action=Delete file=#attachment#
/cfif

Steve LaBadie, Web Manager
East Stroudsburg University
570-422-3999
slaba...@esu.edumailto:slaba...@esu.edu

[facebook-16x16]http://www.facebook.com/eaststroudsburguniversity  
[twitter-16x16] http://twitter.com/esuniversity   [youtube-16x16] 
http://www.youtube.com/user/esuedu



~|
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:356963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 
Director of Interactive Services

Austin  Williams
Advertising I Branding I Digital I Direct  
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
T 631.231.6600 X 119   F 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_williams 


-Original Message-
From: Steve LaBadie [mailto:slaba...@po-box.esu.edu] 
Sent: Wednesday, October 23, 2013 9:08 AM
To: cf-talk
Subject: CFFILE Question


I have a web-based form that requires the user to upload a document. Everything 
works fine until I try and delete the document after delivery. With the delete 
action enabled the email does not get delivered. I have place the action=delete 
inside and outside of the /cfmail

cfif isDefined(form.attached) AND form.attached NEQ  cffile 
action=upload destination=f:\inetpub\wwwroot\..\..\upload 
mode=644 nameConflict=overwrite fileField=form.attached cfset 
attachment=f:\inetpub\wwwroot\..\..\upload\#cffile.serverFile#
/cfif
cfprocessingdirective suppresswhitespace=no
cfmail from=#..# to=#..# subject= type=html
cfsilentcfif FORM.attached neq 
cfmailparam file=#attachment# //cfif/cfsilent /cfmail

cfif isDefined(form.attached) AND form.attached NEQ 
cffile action=Delete file=#attachment#
/cfif

Steve LaBadie, Web Manager
East Stroudsburg University
570-422-3999
slaba...@esu.edumailto:slaba...@esu.edu

[facebook-16x16]http://www.facebook.com/eaststroudsburguniversity  
[twitter-16x16] http://twitter.com/esuniversity   [youtube-16x16] 
http://www.youtube.com/user/esuedu





~|
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:356964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 to clean up your attachments once per day
instead.


On Wed, Oct 23, 2013 at 2:08 PM, Steve LaBadie slaba...@po-box.esu.eduwrote:


 I have a web-based form that requires the user to upload a document.
 Everything works fine until I try and delete the document after delivery.
 With the delete action enabled the email does not get delivered. I have
 place the action=delete inside and outside of the /cfmail

 cfif isDefined(form.attached) AND form.attached NEQ 
 cffile action=upload
 destination=f:\inetpub\wwwroot\..\..\upload mode=644
 nameConflict=overwrite fileField=form.attached
 cfset
 attachment=f:\inetpub\wwwroot\..\..\upload\#cffile.serverFile#
 /cfif
 cfprocessingdirective suppresswhitespace=no
 cfmail from=#..# to=#..# subject=
 type=html
 cfsilentcfif FORM.attached neq
 cfmailparam file=#attachment# //cfif/cfsilent
 /cfmail

 cfif isDefined(form.attached) AND form.attached NEQ 
 cffile action=Delete file=#attachment#
 /cfif

 Steve LaBadie, Web Manager
 East Stroudsburg University
 570-422-3999
 slaba...@esu.edumailto:slaba...@esu.edu

 [facebook-16x16]http://www.facebook.com/eaststroudsburguniversity
  [twitter-16x16] http://twitter.com/esuniversity   [youtube-16x16] 
 http://www.youtube.com/user/esuedu



 

~|
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:356965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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
variable and then add it to the content attribute and delete the file.  I
am actually saving the file contents into the database, and then dropping
the value of the database column directly into the cfmailparam tag.  It has
been working great, and no need for file clean up.


Ben Nadel has a great blog about it.
http://www.bennadel.com/blog/1220-ColdFusion-CFMailParam-s-New-Content-Attribute-Is-Awesome.htm

Brian Cain


On Wed, Oct 23, 2013 at 8:08 AM, Steve LaBadie slaba...@po-box.esu.eduwrote:


 I have a web-based form that requires the user to upload a document.
 Everything works fine until I try and delete the document after delivery.
 With the delete action enabled the email does not get delivered. I have
 place the action=delete inside and outside of the /cfmail

 cfif isDefined(form.attached) AND form.attached NEQ 
 cffile action=upload
 destination=f:\inetpub\wwwroot\..\..\upload mode=644
 nameConflict=overwrite fileField=form.attached
 cfset
 attachment=f:\inetpub\wwwroot\..\..\upload\#cffile.serverFile#
 /cfif
 cfprocessingdirective suppresswhitespace=no
 cfmail from=#..# to=#..# subject=
 type=html
 cfsilentcfif FORM.attached neq
 cfmailparam file=#attachment# //cfif/cfsilent
 /cfmail

 cfif isDefined(form.attached) AND form.attached NEQ 
 cffile action=Delete file=#attachment#
 /cfif

 Steve LaBadie, Web Manager
 East Stroudsburg University
 570-422-3999
 slaba...@esu.edumailto:slaba...@esu.edu

 [facebook-16x16]http://www.facebook.com/eaststroudsburguniversity
  [twitter-16x16] http://twitter.com/esuniversity   [youtube-16x16] 
 http://www.youtube.com/user/esuedu



 

~|
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:356966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFFile Question

2013-01-31 Thread Robert Harrison

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 upload files to our extranet. Our server is 
windows based, so it does not support all of the file characters supported on 
the Mac. A MAC client was trying to upload a file named: 

S107-CounterCard:GiftSheet.indd4.zip

Because of the : in the file name the upload bombed.  I had him rename the file 
to: 

S107-CounterCard-GiftSheet-indd4.zip 

and that worked fine.

Question is:  Is there some simple thing I should be doing to avoid this that 
I'm missing?

Thanks,
Robert

Robert Harrison 
Director of Interactive Services

Austin  Williams
Advertising I Branding I Digital I Direct  
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
T 631.231.6600 X 119   F 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austi

~|
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:354200
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 upload files to our extranet. Our server is
 windows based, so it does not support all of the file characters supported
 on the Mac. A MAC client was trying to upload a file named:

 S107-CounterCard:GiftSheet.indd4.zip

 Because of the : in the file name the upload bombed.  I had him rename the
 file to:

 S107-CounterCard-GiftSheet-indd4.zip

 and that worked fine.

 Question is:  Is there some simple thing I should be doing to avoid this
 that I'm missing?

 Thanks,
 Robert

 Robert Harrison
 Director of Interactive Services

 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
 T 631.231.6600 X 119   F 631.434.7022
 http://www.austin-williams.com

 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austi

 

~|
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:354201
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 never go in the web
root (even though I'm doing that here), and also that they do not keep the
same filename. You see here that I am giving the file a uuid as its name,
but you can give it a database unique key if you have a record of your
upload, or something else. You can get the name cffile gave it through
#f.serverFile#. Track that name in your database, and the #f.clientFile#
original file name as well. In fact, just cfdump var=#f# to see all
that cffile has.


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Thu, Jan 31, 2013 at 9: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 upload files to our extranet. Our server is
 windows based, so it does not support all of the file characters supported
 on the Mac. A MAC client was trying to upload a file named:

 S107-CounterCard:GiftSheet.indd4.zip

 Because of the : in the file name the upload bombed.  I had him rename the
 file to:

 S107-CounterCard-GiftSheet-indd4.zip

 and that worked fine.

 Question is:  Is there some simple thing I should be doing to avoid this
 that I'm missing?

 Thanks,
 Robert

 Robert Harrison
 Director of Interactive Services

 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
 T 631.231.6600 X 119   F 631.434.7022
 http://www.austin-williams.com

 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austi

 

~|
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:354202
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cffile question

2006-11-12 Thread Bob Imperial
Hi Folks.
 
while I realize this a question for the cf_newbie list, the response times
here are always much faster here. First off, thank you Michael D. for your
response on cf_newbie in regards to my question about cfdirectory. I am
still working on the basics with many things cf, another being cffile and
the write action and what the limitations are as to what can be put into
the output. I have a bit of code that creates a few directories and then
writes and index page with a short message and datetime stamp. Here's what
I'm using so far after my directories are created.
 
 
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
#DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#
 
OK, here's the simpleton question, can I put any html tags in the output
above or into the output below? I'd like to put this in a div centered on
the page.

  
 cffile action=read file=#BaseDir#\index.cfm variable=confirmation
 cfoutput
  #HTMLCodeFormat(confirmation)# 
 /cfoutput
 
TIA ... Bob


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260083
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#

#DateFormat(createODBCDateTime(myDate),  dd, )# #TimeFormat 
(createODBCDateTime(myDate),hh:mm:ss tt)#

(tt does not work in the DateFormat() function )


 OK, here's the simpleton question, can I put any html tags in the  
 output
 above or into the output below? I'd like to put this in a div  
 centered on
 the page.


  cffile action=read file=#BaseDir#\index.cfm  
 variable=confirmation
  cfoutput
   #HTMLCodeFormat(confirmation)#
  /cfoutput

You can put any HTML tags into your output, but you may need to  
escape any CFML tags in the input by using #chr(60)# for  and #chr 
(62)# for  


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260086
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Sunday, November 12, 2006 9:57 AM
Subject: cffile question


 Hi Folks.

 while I realize this a question for the cf_newbie list, the response times
 here are always much faster here. First off, thank you Michael D. for your
 response on cf_newbie in regards to my question about cfdirectory. I am
 still working on the basics with many things cf, another being cffile and
 the write action and what the limitations are as to what can be put into
 the output. I have a bit of code that creates a few directories and then
 writes and index page with a short message and datetime stamp. Here's what
 I'm using so far after my directories are created.


 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
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#

 OK, here's the simpleton question, can I put any html tags in the output
 above or into the output below? I'd like to put this in a div centered on
 the page.


  cffile action=read file=#BaseDir#\index.cfm variable=confirmation
  cfoutput
   #HTMLCodeFormat(confirmation)#
  /cfoutput

 TIA ... Bob


 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260090
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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 successfully on
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#
 
 #DateFormat(createODBCDateTime(myDate),  dd, )# #TimeFormat 
 (createODBCDateTime(myDate),hh:mm:ss tt)#
 
 (tt does not work in the DateFormat() function )

FYI, there is absolutely no need to use createODBCDateTime() here

If myDate is already a date, then you can just pass IT to date format. 
  The only purpose of createODBCDateTime() is if you're putting a date 
time object in a query and you're *NOT* using CFQUERYPARAM.

so above, you'd be just fine with:

#DateFormat(myDate,  dd, )# #TimeFormat(myDate,hh:mm:ss tt)#

Rick

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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 directories were created successfully on
#DateFormat(CreateODBCDate(myDate),  d, )# #timeFormat(myDate,
hh:mm:ss:tt)#


Doug



- Original Message -
From: Bob Imperial [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Sunday, November 12, 2006 9:57 AM
Subject: cffile question


 Hi Folks.

 while I realize this a question for the cf_newbie list, the response times
 here are always much faster here. First off, thank you Michael D. for your
 response on cf_newbie in regards to my question about cfdirectory. I am
 still working on the basics with many things cf, another being cffile and
 the write action and what the limitations are as to what can be put into
 the output. I have a bit of code that creates a few directories and then
 writes and index page with a short message and datetime stamp. Here's what
 I'm using so far after my directories are created.


 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
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#

 OK, here's the simpleton question, can I put any html tags in the output
 above or into the output below? I'd like to put this in a div centered on
 the page.


  cffile action=read file=#BaseDir#\index.cfm variable=confirmation
  cfoutput
   #HTMLCodeFormat(confirmation)#
  /cfoutput

 TIA ... Bob


 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260092
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cffile question

2006-11-12 Thread Bob Imperial
Thank you Rick!! 

I think the light maybe coming on here lately ;-). I think I've done about
all I can do with being self taught for the most part and trying to figure
it all out by myself ;-), coming out of the shadows and asking questions
here after I've exhausted trying everything my little 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.)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 
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#
 
 #DateFormat(createODBCDateTime(myDate),  dd, )# #TimeFormat 
 (createODBCDateTime(myDate),hh:mm:ss tt)#
 
 (tt does not work in the DateFormat() function )

FYI, there is absolutely no need to use createODBCDateTime() here

If myDate is already a date, then you can just pass IT to date format. 
  The only purpose of createODBCDateTime() is if you're putting a date time
object in a query and you're *NOT* using CFQUERYPARAM.

so above, you'd be just fine with:

#DateFormat(myDate,  dd, )# #TimeFormat(myDate,hh:mm:ss tt)#

Rick



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260094
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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 write to no avail. Is
what I am trying to do even possible? I am emailing a link to the index page
and I'm trying to simply center the output there.

TIA Bob


   cffile action=write
  file=#BaseDir#\index.cfm
  output=Website directories were created successfully on 
 #DateFormat(CreateODBCDate(myDate),  d,  hh:mm:ss)#


  cffile action=read file=#BaseDir#\index.cfm  
 variable=confirmation
  cfoutput
   #HTMLCodeFormat(confirmation)#
  /cfoutput

You can put any HTML tags into your output, but you may need to escape any
CFML tags in the input by using #chr(60)# for  and #chr (62)# for  




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260102
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFFILE question, rewritten

2004-09-15 Thread mayo
I am using CFFILE to create articles for a magazine publisher.

I would like to include CF code that is not processed when CFFILE is
executed.

In effect I'm looking for a tag that is something like:

#doNotProcess(CGI.path_info)#

where the CFFILE does not process CGI.path_info but in the resulting file
CGI.path_info is there and able to be used.

There are several things I would like to be able to do. One specific example
is to have a printer-friendly link

a href="" Friendly Version/a

Which calls the existing page and re-displays it with the new stylesheet.

cfparam name=style default=www

link href="" type=text/css rel=stylesheet

The resulting page should look like the code below:



cfparam name=style default=www

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleSome Title/title
link href="" type=text/css rel=stylesheet
/head

...

a href="" Friendly Version/a



Thanks,

Gil

-Original Message-
From: Andrew Dixon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 2:30 AM
To: CF-Talk
Subject: Re: cffile write question, sending but not parsing cf code

Not sure I have understood this right, but I assume the file you are
trying create a CF Script, but remove the database call. In that case,
you can put all your bits of script into a variable and than right
that variable. The script will not be processed by CFFILE, for
example:

cfset pageString = this is some content
cfset pageString = #pageString# cfset a = 1
cffile action="" file=/stories/2004-1234.cfm output=#pageString

This will create the CF script and when called the CF parts will be
processed.

Andrew.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 = replace(doc, ^, , all) /

cffile ... output=#doc# /

Just be VERY careful if you're generating CFM pages, because any
dynamic content will be rendered by CF, so if someone creates content
for a page that includes a CFQUERY tag, it'll actually run unless you
prevent it.HTMLEditFormat() is your friend for this one.Make sure
EVERYTHING is either wrapped with that, or protected in some other
fashion.

cheers,
barneyb

On Wed, 15 Sep 2004 12:23:26 -0400, mayo [EMAIL PROTECTED] wrote:
 I am using CFFILE to create articles for a magazine publisher.
 
 I would like to include CF code that is not processed when CFFILE is
 executed.
 
 In effect I'm looking for a tag that is something like:
 
 #doNotProcess(CGI.path_info)#
 
 where the CFFILE does not process CGI.path_info but in the resulting file
 CGI.path_info is there and able to be used.
 
 There are several things I would like to be able to do. One specific example
 is to have a printer-friendly link
 
 a href="" Friendly Version/a
 
 Which calls the existing page and re-displays it with the new stylesheet.
 
 cfparam name=style default=www
 
 link href="" type=text/css rel=stylesheet
 
 The resulting page should look like the code below:
 
 
 
 cfparam name=style default=www
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 html
 head
 titleSome Title/title
 link href="" type=text/css rel=stylesheet
 /head
 
 ...
 
 a href="" Friendly Version/a
 
 
 
 Thanks,
 
 Gil
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFFILE Question????

2004-08-26 Thread Ciliotta, Mario
Hi,

 
Is there anyway to create a file and automatically have the file download to a
floppy in the A: drive.

 
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?

 
Thanks
Mario
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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?

Yes.

cfsavecontent variable=tmpFile
cfloop query=query_name#field1#|#field2#/cfloop
/cfsavecontent

cfheader name=Content-type value=application/octet-stream
cfheader name=Content-disposition value=attachment; filename=file.txt
cfcontent reset=yes#tmpFile#

-- 
mack /
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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

Hi,

Is there anyway to create a file and automatically have the file download to a
floppy in the A: drive.

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?

Thanks
Mario
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFFile Question

2004-08-02 Thread Donna French
Trying to go back and update my web app to close the door behind some things. Trying to delete images from the server when someone deletes an item from the database. 

(I'm using CF 5  SQL DB)

Here's some code:.

cfquery name=deleteProduct
 DELETE FROM products
 WHERE productid = #URL.productid#
/cfquery

cfquery name=deleteImage
 SELECT *
 FROM products
 WHERE productid = #URL.productid#
/cfquery

!--- Delete Images ---
cfoutput query=deleteImage
 cffile action="" file=c:\inetpub\lanescollectibles\images\400\#lanesid#.jpg
 cffile action="" file=c:\inetpub\lanescollectibles\images\200\#lanesid#.jpg
 cffile action="" file=c:\inetpub\lanescollectibles\images\85\#lanesid#.jpg
/cfoutput 

Any help greatly appreciated!

TIA,

Donna
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 to close the door behind some
things. Trying to delete images from the server when someone deletes an item
from the database. 

(I'm using CF 5  SQL DB)

Here's some code:.

cfquery name=deleteProduct
DELETE FROM products
WHERE productid = #URL.productid#
/cfquery

cfquery name=deleteImage
SELECT *
FROM products
WHERE productid = #URL.productid#
/cfquery

!--- Delete Images ---
cfoutput query=deleteImage
cffile action="">
file=c:\inetpub\lanescollectibles\images\400\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\200\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\85\#lanesid#.jpg
/cfoutput 

Any help greatly appreciated!

TIA,

Donna 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 update my web app to close the door behind some
things. Trying to delete images from the server when someone deletes
an item from the database.

 (I'm using CF 5  SQL DB)

 Here's some code:.

 cfquery name=deleteProduct
 DELETE FROM products
 WHERE productid = #URL.productid#
 /cfquery

 cfquery name=deleteImage
 SELECT *
 FROM products
 WHERE productid = #URL.productid#
 /cfquery

 !--- Delete Images ---
 cfoutput query=deleteImage
 cffile action="">
file=c:\inetpub\lanescollectibles\images\400\#lanesid#.jpg
 cffile action="">
file=c:\inetpub\lanescollectibles\images\200\#lanesid#.jpg
 cffile action="">
file=c:\inetpub\lanescollectibles\images\85\#lanesid#.jpg
 /cfoutput 

 Any help greatly appreciated!

 TIA,

 Donna
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 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 to close the door behind some
things. Trying to delete images from the server when someone deletes an item
from the database. 

(I'm using CF 5  SQL DB)

Here's some code:.

cfquery name=deleteProduct
DELETE FROM products
WHERE productid = #URL.productid#
/cfquery

cfquery name=deleteImage
SELECT *
FROM products
WHERE productid = #URL.productid#
/cfquery

!--- Delete Images ---
cfoutput query=deleteImage
cffile action="">
file=c:\inetpub\lanescollectibles\images\400\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\200\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\85\#lanesid#.jpg
/cfoutput 

Any help greatly appreciated!

TIA,

Donna 
 _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 ;)

-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 update my web app to close the door behind some
things. Trying to delete images from the server when someone deletes
an item from the database.

(I'm using CF 5  SQL DB)

Here's some code:.

cfquery name=deleteProduct
DELETE FROM products
WHERE productid = #URL.productid#
/cfquery

cfquery name=deleteImage
SELECT *
FROM products
WHERE productid = #URL.productid#
/cfquery

!--- Delete Images ---
cfoutput query=deleteImage
cffile action="">
file=c:\inetpub\lanescollectibles\images\400\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\200\#lanesid#.jpg
cffile action="">
file=c:\inetpub\lanescollectibles\images\85\#lanesid#.jpg
/cfoutput 

Any help greatly appreciated!

TIA,

Donna
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




cffile question

2004-06-25 Thread Tony Weeg
hi there.

ok, I have a mapped network drive, that from my cfmx server, I can write
files to, etc...however when I try to use coldfusion and cffile, to create
the file on the mapped network drive, it gives me an error, access denied.

Detail The cause of this exception was: java.io.FileNotFoundException:
f:\vehiclesIncsvFormat.csv (Access is denied). 
Message An error occurred when performing a file operation WRITE on file
f:\vehiclesIncsvFormat.csv. 
RootCause struct 
Message f:\vehiclesIncsvFormat.csv (Access is denied) 

 
any ideas? permissions are set to EVERYONE, full control.(for now, until I
get this working and can pare down permissions.)ideas anyone?

thanks

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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,

 
Andrew
Webmaster

 
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 9:44 AM
To: CF-Talk
Subject: cffile question

 
hi there.

ok, I have a mapped network drive, that from my cfmx server, I can write
files to, etc...however when I try to use coldfusion and cffile, to
create
the file on the mapped network drive, it gives me an error, access
denied.

Detail The cause of this exception was: java.io.FileNotFoundException:
f:\vehiclesIncsvFormat.csv (Access is denied). 
Message An error occurred when performing a file operation WRITE on file
f:\vehiclesIncsvFormat.csv. 
RootCause struct 
Message f:\vehiclesIncsvFormat.csv (Access is denied) 

any ideas? permissions are set to EVERYONE, full control.(for now,
until I
get this working and can pare down permissions.)ideas anyone?

thanks

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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: cffile question
To: CF-Talk [EMAIL PROTECTED]

hi there.

ok, I have a mapped network drive, that from my cfmx server, I can write

files to, etc...however when I try to use coldfusion and cffile, to create

the file on the mapped network drive, it gives me an error, access denied.

Detail The cause of this exception was: java.io.FileNotFoundException:
f:\vehiclesIncsvFormat.csv (Access is denied). 

Message An error occurred when performing a file operation WRITE on file
f:\vehiclesIncsvFormat.csv. 
RootCause struct 
Message f:\vehiclesIncsvFormat.csv (Access is denied) 

any ideas? permissions are set to EVERYONE, full control.(for now, until I
get this working and can pare down permissions.)ideas anyone?

thanks

...tony
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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 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: cffile question
To: CF-Talk [EMAIL PROTECTED]

hi there.

ok, I have a mapped network drive, that from my cfmx server, I can write

files to, etc...however when I try to use coldfusion and cffile, to create

the file on the mapped network drive, it gives me an error, access denied.

Detail The cause of this exception was: java.io.FileNotFoundException:
f:\vehiclesIncsvFormat.csv (Access is denied). 

Message An error occurred when performing a file operation WRITE on file
f:\vehiclesIncsvFormat.csv. 
RootCause struct 
Message f:\vehiclesIncsvFormat.csv (Access is denied) 

any ideas? permissions are set to EVERYONE, full control.(for now, until I
get this working and can pare down permissions.)ideas anyone?

thanks

...tony
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cffile question

2004-06-25 Thread Tony Weeg
ok I used the unc path, and still the same thing.

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?

can I do it on the fly and it wont alter anything else? lets say if I use an
administrator account...

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 [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 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: cffile question
To: CF-Talk [EMAIL PROTECTED]

hi there.

ok, I have a mapped network drive, that from my cfmx server, I can write

files to, etc...however when I try to use coldfusion and cffile, to create

the file on the mapped network drive, it gives me an error, access denied.

Detail The cause of this exception was: java.io.FileNotFoundException:
f:\vehiclesIncsvFormat.csv (Access is denied). 

Message An error occurred when performing a file operation WRITE on file
f:\vehiclesIncsvFormat.csv. 
RootCause struct 
Message f:\vehiclesIncsvFormat.csv (Access is denied) 

any ideas? permissions are set to EVERYONE, full control.(for now, until I
get this working and can pare down permissions.)ideas anyone?

thanks

...tony
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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?
 
 can I do it on the fly and it wont alter anything else? lets 
 say if I use an administrator account...

If you use an administrator account, it should be very easy for you to do
this. Of course, you'd still need to make sure that this administrative
account has rights to the remote shares to be able to access them from CF.

If you use a non-administrative account, as I'd strongly recommend, you will
need to ensure that this account has the right to run as a service, and that
it has modify rights to the directory containing the CFMX server binaries
and read-execute rights to the directory containing your CF code. There's no
reason you need to run CF as an administrative account.

In fact, you can get very restrictive about the CF account's rights and
permissions. The CF account simply needs read rights to your CF files, not
execute rights, and it doesn't need modify rights to the entire
CFusionMX\JRun directory. It's just easier to set up that way, of course.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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, 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?
 
 can I do it on the fly and it wont alter anything else? lets 
 say if I use an administrator account...

If you use an administrator account, it should be very easy for you to do
this. Of course, you'd still need to make sure that this administrative
account has rights to the remote shares to be able to access them from CF.

If you use a non-administrative account, as I'd strongly recommend, you will
need to ensure that this account has the right to run as a service, and that
it has modify rights to the directory containing the CFMX server binaries
and read-execute rights to the directory containing your CF code. There's no
reason you need to run CF as an administrative account.

In fact, you can get very restrictive about the CF account's rights and
permissions. The CF account simply needs read rights to your CF files, not
execute rights, and it doesn't need modify rights to the entire
CFusionMX\JRun directory. It's just easier to set up that way, of course.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cffile question

2004-06-25 Thread Joe Rinehart
I think there's two posts going along this same line now.

I would not grant CF administrator access - generally, I run it as a
specific user and grant that user rights only to what it needs.

-joe

- Original Message -
From: Tony Weeg [EMAIL PROTECTED]
Date: Fri, 25 Jun 2004 11:37:04 -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-Talk

Subject: RE: cffile question

 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?

 

 can I do it on the fly and it wont alter anything else? lets 

 say if I use an administrator account...

If you use an administrator account, it should be very easy for you to do

this. Of course, you'd still need to make sure that this administrative

account has rights to the remote shares to be able to access them from CF.

If you use a non-administrative account, as I'd strongly recommend, you will

need to ensure that this account has the right to run as a service, and that

it has modify rights to the directory containing the CFMX server binaries

and read-execute rights to the directory containing your CF code. There's no

reason you need to run CF as an administrative account.

In fact, you can get very restrictive about the CF account's rights and

permissions. The CF account simply needs read rights to your CF files, not

execute rights, and it doesn't need modify rights to the entire

CFusionMX\JRun directory. It's just easier to set up that way, of course.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

phone: 202-797-5496

fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




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] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 ZZ, then it'll force a download
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 the octet-stream to a specific editor, then it won't
give the Save option by default
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFILE question

2004-03-19 Thread kelly
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] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFILE Question

2004-01-14 Thread Kelly Matthews
OK I have a form that someone fills out, they hit submit and I present the results.At the same time I need to create an html file on the fly with the same results to save for later use.So basically I set something like CFSET body='THE ENTIRE HTML DOCUMENT BODY'

Now within the above CFSET tag the body contains html and cold fusion. There are some CFIF statements in it etc. 

However when I then go to write the file
CFFILE action="" output=#body# etc.
The file is created but the cold fusion tags appear in the html file.Any cold fusion out put is coming through fine but anything like CFIF tags are actually in the html document AS CFIF tags instead of processing BEFORE the html document is created.I hope that makes sense. I just need to create this html document but have the tags actually process rather then show up in the body. Suggestions?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 to create an html file on the fly
with the same results to save for later use.So basically I set
something like CFSET body='THE ENTIRE HTML DOCUMENT BODY'

Now within the above CFSET tag the body contains html and cold fusion.
There are some CFIF statements in it etc. 

However when I then go to write the file
CFFILE action="" output=#body# etc.
The file is created but the cold fusion tags appear in the html file.
Any cold fusion out put is coming through fine but anything like CFIF
tags are actually in the html document AS CFIF tags instead of
processing BEFORE the html document is created.I hope that makes
sense. I just need to create this html document but have the tags
actually process rather then show up in the body. Suggestions? 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFILE Question

2003-10-15 Thread Allan Clarke
Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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: CF-Talk
Subject: CFFILE Question

Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com http://shopping.yahoo.com
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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-
From: Allan Clarke [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question

Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 October 2003 10:34
To: CF-Talk
Subject: Re:CFFILE Question

I was hoping somebody could show me how to do this. Thanks

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-
From: Allan Clarke [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question


Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFFILE Question

2003-10-15 Thread Calvin Ward
Keep in mind if you do that, it won't be able to provide you success or failure in the cf template.

If you want to view the results of the .bat file in the calling cf template, you can set a timeout and use the new variable attribute for cfexecute (starting in MX 6.1) or surround your cfexecute 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 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 October 2003 10:34
To: CF-Talk
Subject: Re:CFFILE Question

I was hoping somebody could show me how to do this. Thanks

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-
From: Allan Clarke [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question


Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 name=mybatchfile.bat / 

from the cf template.

Craig.

-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 10:49
To: CF-Talk
Subject: Re:CFFILE Question

I've tried doing this and I get an error:

cfexecute name=copy
D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log destination.log
timeout=5/cfexecute 

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 October 2003 10:34
To: CF-Talk
Subject: Re:CFFILE Question


I was hoping somebody could show me how to do this. Thanks

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-
From: Allan Clarke [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question


Hello Everybody,

I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory beginning with SupportiSearches. There
are going to be more than one file with that name. The
idea is to append the contents of log files into one
log file. 

To give you a better understanding, take for instance
there are 2 log files under the directory called:
Support2003-09.log and Support2003-08.log. I want to
read the contents stored in these files, both files
are identical in that the content is comma separated
and both files have the same no of columns. I want to
read the contents of the files using cffile and append
the contents stored in the files in one file. I hope
this is making sense. Can somebody please show me how
to do this.

Best Regards
Allan

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 



 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 the
browser. Here is my code:
	
	cfexecute name=supportSearches.bat /
	
	The error I get is:
	
	An exception occurred when invoking an external process.
	The cause of this exception was that: java.io.IOException:
CreateProcess: supportSearches.bat error=2.
	
	The error occurred in D:\CFusionMX\wwwroot\logReport\Search.cfm:
line 
	
	
	cfexecute name=supportSearches.bat /
	
	When I run the bat file from the command prompt it works fine,
but when get an error when I run it using cfexecute. I'm using CFMX
	
	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 name=mybatchfile.bat / 
	
	from the cf template.
	
	Craig.
	
	-Original Message-
	From: ColdFusion Programmer
[mailto:[EMAIL PROTECTED] 
	Sent: 15 October 2003 10:49
	To: CF-Talk
	Subject: Re:CFFILE Question
	
	
	I've tried doing this and I get an error:
	
	cfexecute name=copy
	D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log
destination.log
	timeout=5/cfexecute 
	
	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 October 2003 10:34
	To: CF-Talk
	Subject: Re:CFFILE Question
	
	
	I was hoping somebody could show me how to do this. Thanks
	
	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-
	From: Allan Clarke [mailto:[EMAIL PROTECTED] 
	Sent: 15 October 2003 10:12
	To: CF-Talk
	Subject: CFFILE Question
	
	
	Hello Everybody,
	
	I want to see the contents of a directory on the
	server. I know there is a function in CF to do this,
	GetTemplatePath, cfdirectory or something (not sure).
	The directory path will not change. I want to first
	get to the directory and then find all log files in
	the directory beginning with SupportiSearches. There
	are going to be more than one file with that name. The
	idea is to append the contents of log files into one
	log file. 
	
	To give you a better understanding, take for instance
	there are 2 log files under the directory called:
	Support2003-09.log and Support2003-08.log. I want to
	read the contents stored in these files, both files
	are identical in that the content is comma separated
	and both files have the same no of columns. I want to
	read the contents of the files using cffile and append
	the contents stored in the files in one file. I hope
	this is making sense. Can somebody please show me how
	to do this.
	
	Best Regards
	Allan
	
	__
	Do you Yahoo!?
	The New Yahoo! Shopping - with improved product search
	http://shopping.yahoo.com
	
	 
	
	
	
	 
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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 name=D:\CFusionMX\wwwroot\supportSearches.bat timeout=5
/cfexecute

This will not...

cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat timeout=5/

This also will not, and won't even wait for the batch file to finish
before continuing to process the rest of the cfml template (current).

cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat / 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




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
timeout=5/ 
	
	Is there a way to not display the output?
	
	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 name=D:\CFusionMX\wwwroot\supportSearches.bat
timeout=5
	/cfexecute
	
	
	This will not...
	
	cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat
timeout=5/
	
	
	This also will not, and won't even wait for the batch file to
finish
	before continuing to process the rest of the cfml template
(current).
	
	cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat /  
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFFILE Question

2003-01-22 Thread Ciliotta, Mario
Hi All,

Is is possible to specify in a CFFILE tag the directory path of another Cold Fusion 
server to save the file.  Basically what I what to do is run an application on a 
server that is distributed among 4 different server in 4 different location.  The 
application has a file upload piece and I am bit confused as to where the file will be 
saved.  If I create a new directory on all four server say called H:\uploads and do a 
cffile with the destination as H:\uploads\somefile.doc and I later go to redisplay the 
file in the browser to another user is file on all four servers or just the one that 
the user doing the upload was running on.

Basically I guess this is a two part question:

1) If the server is distributed between four server, does the file automatically get 
uploaded to all 4

2) If not could I in a CFFILE tag, hardcode a server to save all files to,  I tried 
this but I get an error

CFFILE ACTION=UPLOAD
FILEFIELD=MyFile
DESTINATION=nyc11621.mycompany.net\inetpub\wwwroot\corporate\information\mytest.xls
NAMECONFLICT=MAKEUNIQUE

but if I specify:

CFFILE ACTION=UPLOAD
FILEFIELD=MyFile
DESTINATION=G:\inetpub\wwwroot\corporate\information\mytest.xls
NAMECONFLICT=MAKEUNIQUE

The file get uploaded, but I cannot figure out if I can specify a actual server.

They are both CF servers.

If anyone has any ideas, please let me know.

Mario

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative 
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




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 


-Original Message-
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 23 January 2003 1:09 PM
To: CF-Talk
Subject: CFFILE Question


Hi All,

Is is possible to specify in a CFFILE tag the directory path of another Cold
Fusion server to save the file.  Basically what I what to do is run an
application on a server that is distributed among 4 different server in 4
different location.  The application has a file upload piece and I am bit
confused as to where the file will be saved.  If I create a new directory on
all four server say called H:\uploads and do a cffile with the destination
as H:\uploads\somefile.doc and I later go to redisplay the file in the
browser to another user is file on all four servers or just the one that the
user doing the upload was running on.

Basically I guess this is a two part question:

1) If the server is distributed between four server, does the file
automatically get uploaded to all 4

2) If not could I in a CFFILE tag, hardcode a server to save all files to,
I tried this but I get an error

CFFILE ACTION=UPLOAD
FILEFIELD=MyFile
DESTINATION=nyc11621.mycompany.net\inetpub\wwwroot\corporate\information\my
test.xls
NAMECONFLICT=MAKEUNIQUE

but if I specify:

CFFILE ACTION=UPLOAD
FILEFIELD=MyFile
DESTINATION=G:\inetpub\wwwroot\corporate\information\mytest.xls
NAMECONFLICT=MAKEUNIQUE

The file get uploaded, but I cannot figure out if I can specify a actual
server.

They are both CF servers.

If anyone has any ideas, please let me know.

Mario

This message is for the named person's use only. It may contain sensitive
and private proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE
FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT
SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications
through its networks. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorized to state them to be the views of any such entity. Unless
otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to
deal at any price quoted. Any reference to the terms of executed
transactions should be treated as  preliminary only and subject to our
formal written confirmation.



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Push and CFFILE Question

2002-10-09 Thread Les Mizzell

Haven't done this before, looking for some pointers...

A. Page has a button on it to Create File from a database query
   (got no problem with this part)

B. When pressed, the file is created and pushed at the user, whom would
immediately get a prompt to Save or Open the file.

Possible? The client wants one simple step to do this and would prefer to
*not* have to browse/select the file after creation or click anything to
download. (Lazy, I know.)

Thanks,

Les
*
Happily using CFMX with
little or no problems...
*

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Push and CFFILE Question

2002-10-09 Thread Alistair Davidson

Les

Write the file and then deliver it using CFCONTENT

HTH

Alistair

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]] 
Sent: 09 October 2002 16:01
To: CF-Talk
Subject: Push and CFFILE Question

Haven't done this before, looking for some pointers...

A. Page has a button on it to Create File from a database query
   (got no problem with this part)

B. When pressed, the file is created and pushed at the user, whom
would
immediately get a prompt to Save or Open the file.

Possible? The client wants one simple step to do this and would prefer
to
*not* have to browse/select the file after creation or click anything to
download. (Lazy, I know.)

Thanks,

Les
*
Happily using CFMX with
little or no problems...
*


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Push and CFFILE Question - one more question!

2002-10-09 Thread Les Mizzell

Hi,

Still having a little bit of trouble. Hope you don't mind giving a little
advice

I'm successfully writing the required file to a directory on the server.
Let's call the file someFILE.fnm. (Basically a text file - the extension
is required by the program that's going to open it later...)

Next I'm doing this:

On the page pushFILE.cfm:

cfcontent type=text/plain
file=c:\inetpub\hostroot\www.mySITE.com\files\someFILE.fnm
deletefile=No

As soon as that file is written, the user needs a standard Open or Save
alert box as the file is pushed to them.  Currently the file is opening as
the page it's being called from (pushFILE.cfm) in the browser, with
someFILE.fnm as the content on that page.

How can I get it to push someFILE.fnm at them, with the file name intact
and the option to save?

Hmmm

Thanks...

Les

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Push and CFFILE Question - one more question!

2002-10-09 Thread Mosh Teitelbaum

Stick the following code above the CFCONTENT tag:

CFHEADER
NAME=content-disposition
VALUE=attachment; filename=someFILE.fnm

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


 -Original Message-
 From: Les Mizzell [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 10:46 PM
 To: CF-Talk
 Subject: RE: Push and CFFILE Question - one more question!


 Hi,

 Still having a little bit of trouble. Hope you don't mind giving a little
 advice

 I'm successfully writing the required file to a directory on the server.
 Let's call the file someFILE.fnm. (Basically a text file - the extension
 is required by the program that's going to open it later...)

 Next I'm doing this:

 On the page pushFILE.cfm:

 cfcontent type=text/plain
   file=c:\inetpub\hostroot\www.mySITE.com\files\someFILE.fnm
   deletefile=No

 As soon as that file is written, the user needs a standard Open
 or Save
 alert box as the file is pushed to them.  Currently the file is opening as
 the page it's being called from (pushFILE.cfm) in the browser, with
 someFILE.fnm as the content on that page.

 How can I get it to push someFILE.fnm at them, with the file name intact
 and the option to save?

 Hmmm

 Thanks...

 Les

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Push and CFFILE Question - one more question!

2002-10-09 Thread Les Mizzell

That worked!  Thanks...

Now if I can solve the cfinclude inside the cffile problem I'm done!

Les



: Stick the following code above the CFCONTENT tag:
:
:  CFHEADER
:  NAME=content-disposition
:  VALUE=attachment; filename=someFILE.fnmGet the mailserver that
powers this list at http://www.coolfusion.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Push and CFFILE Question - one more question!

2002-10-09 Thread Mosh Teitelbaum

I sent a response to that one too 8^).  Check the list.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


 -Original Message-
 From: Les Mizzell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 1:06 AM
 To: CF-Talk
 Subject: RE: Push and CFFILE Question - one more question!


 That worked!  Thanks...

 Now if I can solve the cfinclude inside the cffile problem I'm done!

 Les



 : Stick the following code above the CFCONTENT tag:
 :
 :CFHEADER
 :NAME=content-disposition
 :VALUE=attachment; filename=someFILE.fnmGet the
 mailserver that
 powers this list at http://www.coolfusion.com

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



CFFile question

2002-08-21 Thread Eric

  has anyone else had this happen?

  I have a query that finds old image files in a directory but when it goes 
to delete a file it gets error 5 permission denied... I've tried setting 
all the permissions on both the directory and individual files to full 
control for everyone, but I still get the error...

  using CF 5 on Advanced 2000 server
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 image files in a directory but when it goes 
to delete a file it gets error 5 permission denied... I've tried setting 
all the permissions on both the directory and individual files to full 
control for everyone, but I still get the error...

  using CF 5 on Advanced 2000 server

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 on
mapped drives.

   has anyone else had this happen?

   I have a query that finds old image files in a directory but when it
   goes
 to delete a file it gets error 5 permission denied... I've tried setting
 all the permissions on both the directory and individual files to full
 control for everyone, but I still get the error...

   using CF 5 on Advanced 2000 server

hth

Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 
 the files on mapped drives.

By default, the local SYSTEM security context has no permissions to mapped
drives - not being a user, it doesn't recognize mappings, which are made
within the context of a specific user account. I believe there's a way
around this by creating the mapping persistently using a domain admin
account if that's an option, but I'd recommend avoiding the use of drive
mappings in favor of UNC paths. Of course, you'd still have to run the
service as a specific user with rights to the network resources in question.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFFILE question

2002-06-04 Thread phumes1

On our server I have a mapped drive letter Q pointing to a directory on 
another server.

I'm trying to read in a file off the server but I keep getting an error. 
Can't I specify a mapped drive letter in CFFILE?

cfset File=Q:\dir1\filename.txt
cffile action=READ file=#File# variable=FileContents
cfoutput
#FileContents#br
/cfoutput

This is the error:

Error processing CFFILE
Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5)
The error occurred while processing an element with a general identifier of 
(CFFILE), occupying document position (112:1) to (112:65).
Date/Time: 06/04/02 14:19:41
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



+---+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
++


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 PROTECTED]]
Sent: Tuesday, June 04, 2002 1:19 PM
To: CF-Talk
Subject: CFFILE question


On our server I have a mapped drive letter Q pointing to a directory on
another server.

I'm trying to read in a file off the server but I keep getting an error.
Can't I specify a mapped drive letter in CFFILE?

cfset File=Q:\dir1\filename.txt
cffile action=READ file=#File# variable=FileContents
cfoutput
#FileContents#br
/cfoutput

This is the error:

Error processing CFFILE
Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5)
The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (112:1) to (112:65).
Date/Time: 06/04/02 14:19:41
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



+---
+

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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

 [EMAIL PROTECTED] 06/04/02 02:19PM 
On our server I have a mapped drive letter Q pointing to a directory on 
another server.

I'm trying to read in a file off the server but I keep getting an error. 
Can't I specify a mapped drive letter in CFFILE?

cfset File=Q:\dir1\filename.txt
cffile action=READ file=#File# variable=FileContents
cfoutput
#FileContents#br
/cfoutput

This is the error:

Error processing CFFILE
Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5)
The error occurred while processing an element with a general identifier of 
(CFFILE), occupying document position (112:1) to (112:65).
Date/Time: 06/04/02 14:19:41
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



+---+ 

Philip Humeniuk
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
++



__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 difficult, try using UNC file names rather than 
relying on mapped drives.
(This is my standard answer for any drive mapping questions :)

Tried this also without any success.


Jerry Johnson

  [EMAIL PROTECTED] 06/04/02 02:19PM 
On our server I have a mapped drive letter Q pointing to a directory on
another server.

I'm trying to read in a file off the server but I keep getting an error.
Can't I specify a mapped drive letter in CFFILE?

cfset File=Q:\dir1\filename.txt
cffile action=READ file=#File# variable=FileContents
cfoutput
#FileContents#br
/cfoutput

This is the error:

Error processing CFFILE
Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5)
The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (112:1) to (112:65).
Date/Time: 06/04/02 14:19:41
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



+---+ 


Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
++




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 find this helpful:

http://www.defusion.com/articles/index.cfm?ArticleID=89

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE question

2002-06-04 Thread Mark A. Kruger - CFG

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 the user is logged into the desktop. Perhaps someone else has 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 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 find this helpful:

http://www.defusion.com/articles/index.cfm?ArticleID=89

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE question

2002-06-04 Thread Rob Baxter

No, you are right. Mapped drives are specific to the currently logged in
user. That's why UNC paths are much better in this case as they don't
require the user to be actively logged in to work.

/rob

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 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 the user is logged into the desktop. Perhaps someone else has 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 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 find this helpful:

http://www.defusion.com/articles/index.cfm?ArticleID=89

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFFILE Question

2000-08-16 Thread Double Down

This is a multi-part message in MIME format.

--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit

I want to delete a folder that has an image inside of it. The image can be
either a gif or a jpg.  How do I set up the CFFILE delete tag to first
delete the image and then the folder.

TIA
DDINC


--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type
META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR/HEAD
BODY
DIVFONT face=3DArialSPAN class=3D520030222-16082000I want to =
delete a folder=20
that has an image inside of it. The image can be either a gif or a =
jpg.nbsp;=20
How do I set up the CFFILE delete tag to first delete the image and then =
the=20
folder./SPAN/FONT/DIV
DIVFONT face=3DArialSPAN =
class=3D520030222-16082000/SPAN/FONTnbsp;/DIV
DIV class=3DSection1
DIVFONT face=3DArial size=3D2TIA/FONT/DIV
DIVFONT face=3DArial size=3D2DDINC/FONT/DIV/DIV
DIVnbsp;/DIV/BODY/HTML

--=_NextPart_000__01C00793.33D72AA0--

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



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 through the
list deleting the files with CFFILE, then use CFDIRECTORY to remove the
directory.  I have attached a custom tag that will delete a directory and
all its subdirectories and files, so use it for ideas or use it with care.

Justin Kidman

-Original Message-
From: Double Down [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 3:04 PM
To: House Of Fusion
Subject: CFFILE Question


This is a multi-part message in MIME format.

--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit

I want to delete a folder that has an image inside of it. The image can be
either a gif or a jpg.  How do I set up the CFFILE delete tag to first
delete the image and then the folder.

TIA
DDINC


--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type
META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR/HEAD
BODY
DIVFONT face=3DArialSPAN class=3D520030222-16082000I want to =
delete a folder=20
that has an image inside of it. The image can be either a gif or a =
jpg.nbsp;=20
How do I set up the CFFILE delete tag to first delete the image and then =
the=20
folder./SPAN/FONT/DIV
DIVFONT face=3DArialSPAN =
class=3D520030222-16082000/SPAN/FONTnbsp;/DIV
DIV class=3DSection1
DIVFONT face=3DArial size=3D2TIA/FONT/DIV
DIVFONT face=3DArial size=3D2DDINC/FONT/DIV/DIV
DIVnbsp;/DIV/BODY/HTML

--=_NextPart_000__01C00793.33D72AA0--


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--_=_NextPart_000_01C007DB.49E2089A
Content-Type: application/octet-stream;
name="delete_dir.cfm"
Content-Disposition: attachment;
filename="delete_dir.cfm"

CFPARAM NAME="Attributes.Dir"

CFDIRECTORY ACTION="LIST" DIRECTORY="#Attributes.Dir#" NAME="DirListing"

CFLOOP QUERY="DirListing"
CFIF NAME NEQ "." AND NAME NEQ ".."
CFIF TYPE EQ "Dir"
CF_Delete_Dir Dir="#Attributes.Dir#\#NAME#"
CFELSE
CFFILE ACTION="DELETE" FILE="#Attributes.Dir#\#NAME#"
/CFIF
/CFIF
/CFLOOP

CFDIRECTORY ACTION="DELETE" DIRECTORY="#Attributes.Dir#"

--_=_NextPart_000_01C007DB.49E2089A--
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



CFFILE question

2000-05-26 Thread Marlene Buffa

How do we do the following:
Create a fixed ASCII text file with CFFILE.

How do you specify  the picture or format length for a given 
column?

marlene

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



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  LJustify(first_field, 45)#
  cfset s = s  LJustify(second_field, 20)#
  cfset s = s  LJustify(third_field, 32)#
  cfset s = s  LJustify(fourth_field, 50)#
  cfset s = s  Chr(13)  Chr(10)
/cfloop

cffile action="write" file="c:\whatever" output="#s#" addnewline="no"


If the file is relatively small, construct the whole file in memoroy
whithin a variable, as shown above.  If you're writing a multi-megabyte
file, you can use cffile action="append"  and append one or ten or fifty
(or whatever) lines at a time, so that the memory requirements of the
template are less.

Jim



-Original Message-
From: Marlene Buffa [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, May 26, 2000 10:06 AM
Subject: CFFILE question


How do we do the following:
Create a fixed ASCII text file with CFFILE.

How do you specify  the picture or format length for a given
column?

marlene

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.