Determine if file is there
Is there an easy way, without reading the entire file to determine if a file exsists on the server? __ 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: Determine if file is there
Fileexists function Fileexists(absolute_path) -Original Message- From: Nick McClure [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 9:59 AM To: CF-Talk Subject: Determine if file is there Is there an easy way, without reading the entire file to determine if a file exsists on the server? __ 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: Determine if file is there
Use the CFML function: FileExists(absolute_path) HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com - 631-737-4668 x101 inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm - Original Message - From: Nick McClure [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 06, 2002 10:58 AM Subject: Determine if file is there Is there an easy way, without reading the entire file to determine if a file exsists on the server? __ 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: Determine if file is there
You could use CFdirectory. That only gets the directory listing which you can loop through to find the file or files. -Original Message- From: Nick McClure [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 7:59 AM To: CF-Talk Subject: Determine if file is there Is there an easy way, without reading the entire file to determine if a file exsists on the 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: Determine if file is there
FileExists() e.g cfif FileExists(c:\inetpub\wwwroot\somefile.cfm) true cfelse false /cfif - Original Message - From: Nick McClure [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 06, 2002 10:58 AM Subject: Determine if file is there Is there an easy way, without reading the entire file to determine if a file exsists on the 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: Determine if file is there
Oh yea, don't mind me, its monday. At 10:01 AM 5/6/2002 -0500, you wrote: Fileexists function Fileexists(absolute_path) -Original Message- From: Nick McClure [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 9:59 AM To: CF-Talk Subject: Determine if file is there Is there an easy way, without reading the entire file to determine if a file exsists on the server? __ 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
Determine a file size
Hi, I'd like to determine the size of say a .pdf and present that information on screen. Is this possible in Cold Fusion? Thanks, Pete -- 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: Determine a file size
cffile will tell you the size of a file on upload. For an existing file on the server I'd suggest looking for a custom tag at the Allaire Developer's Exchange. - Original Message - From: "Peter Benoit" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 23, 2000 10:44 AM Subject: Determine a file size Hi, I'd like to determine the size of say a .pdf and present that information on screen. Is this possible in Cold Fusion? Thanks, Pete -- 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. -- 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: Determine a file size
I'd like to determine the size of say a .pdf and present that information on screen. Is this possible in Cold Fusion? Pete, Provided you don't have CFDIRECTORY disabled, CFDIRECTORY ACTION="LIST" DIRECTORY="whatever_directory_name" FILTER="whatever.pdf" NAME="query_name" should leave the size in #query_name.size# Nick ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ** -- 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: Determine a file size
I'd like to determine the size of say a .pdf and present that information on screen. Is this possible in Cold Fusion? You use CFDirectory. This gets you the name, date/time and size of the file, as long as they're local to the machine (or on a network) Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -Original Message- From: Peter Benoit [mailto:[EMAIL PROTECTED]] Sent: 23 August 2000 15:44 To: '[EMAIL PROTECTED]' Subject: Determine a file size Hi, Thanks, Pete -- 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. -- 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: Determine a file size
I tried this, but get blank results. Anyone know why? I'm using: cfoutput query="myquery" cfdirectory action="LIST" directory="E:\newdoc" name="getsize" filter="#filename#" #getsize.size#br #filename# /cfoutput Where filename prints out, but the size doesn't. Am I doing something wrong? * -Original Message- * From: DeVoil, Nick [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 12:13 PM * To: '[EMAIL PROTECTED]' * Subject: RE: Determine a file size * * * * I'd like to determine the size of say a .pdf and present that * information on screen. Is this possible in Cold Fusion? * * Pete, * Provided you don't have CFDIRECTORY disabled, * * CFDIRECTORY ACTION="LIST" DIRECTORY="whatever_directory_name" * FILTER="whatever.pdf" NAME="query_name" * * should leave the size in #query_name.size# * Nick * * * * * * * Information in this email is confidential and may be privileged. * It is intended for the addressee only. If you have received * it in error, * please notify the sender immediately and delete it from your system. * You should not otherwise copy it, retransmit it or use or * disclose its * contents to anyone. * Thank you for your co-operation. * * * * * - * - * Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ * To Unsubscribe visit * http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lis ts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- 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: Determine a file size
CFDIRECTORY with a filter attribute will give you everything you may need. Russel At 11:02 08.23.2000 -0500, you wrote: cffile will tell you the size of a file on upload. For an existing file on the server I'd suggest looking for a custom tag at the Allaire Developer's Exchange. - Original Message - From: "Peter Benoit" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 23, 2000 10:44 AM Subject: Determine a file size Hi, I'd like to determine the size of say a .pdf and present that information on screen. Is this possible in Cold Fusion? Thanks, Pete -- 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. -- 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. -- 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.