Re: How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
October 04, 2006 8:12 PM > To: CF-Talk > Subject: Re: How to get file sizes dynamically? > > I should have known that I was going to have to do some math on the file > size returned by cfdirectory... > > I have this: > > Which gives me 8.26320075989 > > How do I

Re: How to get file sizes dynamically?

2006-10-04 Thread Crow T. Robot
; > > > Oh yea. Duh. Disregard my post. :) > > > > > > > > > -Original Message- > > > > > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, October 04, 2006 6:40 PM > > > > > To: CF

RE: How to get file sizes dynamically?

2006-10-04 Thread Andrew Scott
So is NumberFormat() Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: Coldfusion [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 October 2006 10:15 AM To: CF-Talk Subject: RE: How to get file sizes

Re: How to get file sizes dynamically?

2006-10-04 Thread Jerry Johnson
; > > > -Aaron > > > > On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote: > > > Oh yea. Duh. Disregard my post. :) > > > > > > > -Original Message- > > > > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > > > >

RE: How to get file sizes dynamically?

2006-10-04 Thread Coldfusion
CFLib.org is your friend: http://www.cflib.org/udf.cfm?id=787 -Original Message- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 8:12 PM To: CF-Talk Subject: Re: How to get file sizes dynamically? I should have known that I was going to have to do some

Re: How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
lize cffile read the file into memory and the > > rest. > > > > -Aaron > > > > On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote: > > > Oh yea. Duh. Disregard my post. :) > > > > > > > -Original Message- > > > > From

Re: How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
age- > > > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, October 04, 2006 6:40 PM > > > To: CF-Talk > > > Subject: Re: How to get file sizes dynamically? > > > > > > cffile will read the entire file into a memory variabl

Re: How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
> > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 04, 2006 6:40 PM > > To: CF-Talk > > Subject: Re: How to get file sizes dynamically? > > > > cffile will read the entire file into a memory variable. which with an > > mp3 file w

Re: How to get file sizes dynamically?

2006-10-04 Thread Jerry Johnson
I would bet only one of us learned this through personal experience. =) My xServe in the corner still gives me dirty looks. On 10/4/06, Ray Champagne <[EMAIL PROTECTED]> wrote: > Oh yea. Duh. Disregard my post. :) ~| Introdu

RE: How to get file sizes dynamically?

2006-10-04 Thread Ray Champagne
Oh yea. Duh. Disregard my post. :) > -Original Message- > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 04, 2006 6:40 PM > To: CF-Talk > Subject: Re: How to get file sizes dynamically? > > cffile will read the entire file into a memory

RE: How to get file sizes dynamically?

2006-10-04 Thread Ray Champagne
4, 2006 6:23 PM > To: CF-Talk > Subject: Re: How to get file sizes dynamically? > > I was doing a search through cfQuickDocs and found Should I > use or ? > > In a search I did on cffile I somebody suggested the following: > > > > File Size: #Len(MyFile)#

Re: How to get file sizes dynamically?

2006-10-04 Thread Charlie Griefer
]> wrote: > > will return a query containing all the info you > > want. > > > > > > -Original Message- > > From: Aaron Roberson [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 04, 2006 5:08 PM > > To: CF-Talk > > Subject:

Re: How to get file sizes dynamically?

2006-10-04 Thread Jerry Johnson
<[EMAIL PROTECTED]> wrote: > > will return a query containing all the info you > > want. > > > > > > -Original Message- > > From: Aaron Roberson [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 04, 2006 5:08 PM > > To: CF-Talk

RE: How to get file sizes dynamically?

2006-10-04 Thread Matt Quackenbush
:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 5:23 PM To: CF-Talk Subject: Re: How to get file sizes dynamically? I was doing a search through cfQuickDocs and found Should I use or ? In a search I did on cffile I somebody suggested the following: File Size: #Len(MyFile)# Thanks again

Re: How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
info you > want. > > > -Original Message- > From: Aaron Roberson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 04, 2006 5:08 PM > To: CF-Talk > Subject: How to get file sizes dynamically? > > I have a list of mp3 files that I am making available for dow

Re: How to get file sizes dynamically?

2006-10-04 Thread Jerry Johnson
you can use the cfdirectory tag to get a query of all of the files in a folder. you can use the filter attribute to limit it to *.mp3 files. The size field in the returned query will give you the size in Bytes. The name field in the returned query will gove you the filename. If you need to get mo

RE: How to get file sizes dynamically?

2006-10-04 Thread Matt Quackenbush
will return a query containing all the info you want. -Original Message- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 5:08 PM To: CF-Talk Subject: How to get file sizes dynamically? I have a list of mp3 files that I am making available for download

RE: How to get file sizes dynamically?

2006-10-04 Thread Ben Nadel
x27;t list all the files in the directory, JUST the given file. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 6:08 PM To: CF-Talk Subject: How t

RE: How to get file sizes dynamically?

2006-10-04 Thread Ian Skinner
should provide you with that information. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This mess

How to get file sizes dynamically?

2006-10-04 Thread Aaron Roberson
I have a list of mp3 files that I am making available for download on my website and would like to indicate what the file size of each mp3 is. How can I do this programmaticly? Thanks for the help! Aaron ~| Introducing the Fusio

Re: Get file size on UNIX?

2005-04-28 Thread Gruss Gott
> John wrote: > I'm not a unix guy so I appologize for the (hopefully) easy question. > What's the easiest way to get the file size of a file that is already > sitting on the server? I need to loop over a list of files and save the I just use "du -k -d ." (no quotes) which will tell the size of f

RE: Get file size on UNIX?

2005-04-28 Thread RADEMAKERS Tanguy
of course i meant "wc -c [your_filename_here]" i'll just get my coat... /t >-Original Message- >From: RADEMAKERS Tanguy >Sent: Thursday, April 28, 2005 7:59 PM >To: 'cf-talk@houseoffusion.com' >Subject: RE: Get file size on UNIX? > >&

RE: Get file size on UNIX?

2005-04-28 Thread RADEMAKERS Tanguy
>something like this? > >ls -alh ./ | grep -v ".* \." | awk {'print $5"|" $9'} or "wc -c" /t ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm

Re: Get file size on UNIX?

2005-04-28 Thread Rob
> I'd go with the cfdirecotry myself ;) *cfdirectory* I need a cfspell checker - stupid lexdysia -- ~Blog~ http://www.robrohan.com ~The cfml plug-in for eclipse~ http://cfeclipse.tigris.org ~open source xslt IDE~ http://treebeard.sourceforge.net

Re: Get file size on UNIX?

2005-04-28 Thread Rob
On 4/28/05, Burns, John D <[EMAIL PROTECTED]> wrote: > Yeah, I guess that would work. I was thinking more along the lines of an > OS function or something. something like this? ls -alh ./ | grep -v ".* \." | awk {'print $5"|" $9'} I'd go with the cfdirecotry myself ;) -- ~Blog~ http://www.rob

Re: Get file size on UNIX?

2005-04-28 Thread Bryan Stevenson
1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com - Original Message - From: "Burns, John D" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, April 28, 2005 10:19 AM Subject: RE: Get file size on UNIX? > Yeah, I guess that wou

RE: Get file size on UNIX?

2005-04-28 Thread Burns, John D
PM To: CF-Talk Subject: Re: Get file size on UNIX? CFDIRECTORY will do it, but has the cost of scanning the whole directory, which may or may not matter. You can also use java.io.File to do it like this #createObject("java", "java.io.File").init("/full/path/to/file")

RE: Get file size on UNIX?

2005-04-28 Thread Burns, John D
dFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 12:14 PM To: CF-Talk Subject: RE: Get file size on UNIX? cfdirectory? -Original Message- From: Burns, John D [mailto:[EMAIL

Re: Get file size on UNIX?

2005-04-28 Thread Barney Boisvert
CFDIRECTORY will do it, but has the cost of scanning the whole directory, which may or may not matter. You can also use java.io.File to do it like this #createObject("java", "java.io.File").init("/full/path/to/file").length()#, but that obviously has to be done individually for each file. Both of

RE: Get file size on UNIX?

2005-04-28 Thread James Holmes
cfdirectory? -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 April 2005 11:58 To: CF-Talk Subject: Get file size on UNIX? I'm not a unix guy so I appologize for the (hopefully) easy question. What's the easiest way to get the file size

Get file size on UNIX?

2005-04-28 Thread Burns, John D
I'm not a unix guy so I appologize for the (hopefully) easy question. What's the easiest way to get the file size of a file that is already sitting on the server? I need to loop over a list of files and save the file size and name of each file to a db. Any help that can be offered would be greatl

RE: How to get file information?

2005-01-10 Thread Kazmierczak, Kevin
PM To: CF-Talk Subject: Re: How to get file information? I just tested it with CF5 on a desktop-class machine on a directory of ~ 47,000 GIF and JPEG images each between 15k and 30k in size. CFDIRECTORY with a filename in the "Filter" attribute came back in 120 ms. 20 of that for CFD

Re: How to get file information?

2005-01-10 Thread Al Everett
size that cfdirectory takes significant > longer than a java.io.File construction > > I could be wrong, as this is all speculation. > > dov > > -Original Message- > From: Calvin Ward [mailto:[EMAIL PROTECTED] > Sent: Monday, January 10, 2005 2:54 PM > To:

RE: How to get file information?

2005-01-10 Thread Katz, Dov B (IT)
peculation. dov -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:54 PM To: CF-Talk Subject: RE: How to get file information? Actually, it wouldn't have to iterate Should just return the single file. - Calvin -Original Message-

RE: How to get file information?

2005-01-10 Thread Calvin Ward
Actually, it wouldn't have to iterate Should just return the single file. - Calvin -Original Message- From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:32 PM To: CF-Talk Subject: RE: How to get file information? CFDirectory is probably not

RE: How to get file information?

2005-01-10 Thread Katz, Dov B (IT)
mance tradeoff, but definitely more features doing it this way... -Dov -Original Message- From: Al Everett [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:18 PM To: CF-Talk Subject: Re: How to get file information? Use CFDIRECTORY with the "Filter" attribute. Then

Re: How to get file information?

2005-01-10 Thread Al Everett
Use CFDIRECTORY with the "Filter" attribute. Then you'll only get information about your specific file. On Mon, 10 Jan 2005 14:16:56 -0500, Kazmierczak, Kevin <[EMAIL PROTECTED]> wrote: > How would one get information on a file from CF? I want to know when > the file was last modified. I know I

RE: How to get file information?

2005-01-10 Thread Kazmierczak, Kevin
I guess I could use cfdirectory with a filter, that would probably do it. -Original Message- From: Kazmierczak, Kevin [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:17 PM To: CF-Talk Subject: How to get file information? How would one get information on a file from CF? I

How to get file information?

2005-01-10 Thread Kazmierczak, Kevin
How would one get information on a file from CF? I want to know when the file was last modified. I know I could use cfdirectory and loop over the directory contents and get it that way but that seems like WAY too much work just to get the date on one file. How come you can't use cffile variab

RE: get file

2004-08-25 Thread Tangorre, Michael
Unless you want the users system to try and open the file in the associated program, don't use a specific type... Here is an example... name="Content-Disposition" value="attachment; filename=#DOCUMENT_NAME#.#DOCUMENT_EXTENSION#"> file="#variables['strDoc']#" type="application/x-unknown

RE: get file

2004-08-25 Thread CFDEV
ok but since it'n in pdf what type do i use in cfcontent? and is it gonna stop the rest of the page? Pat   _   From: Mark Drew [mailto:[EMAIL PROTECTED] Sent: August 25, 2004 11:35 To: CF-Talk Subject: Re: get file checkout cfcontent, depends how you reference your files you can

Re: get file

2004-08-25 Thread Joe Rinehart
. Cheers, Joe - Original Message - From: CFDEV <[EMAIL PROTECTED]> Date: Wed, 25 Aug 2004 11:28:31 -0400 Subject: get file To: CF-Talk <[EMAIL PROTECTED]> Hi, I have files on our server and I want people (once they're logged in) to download a file without knowing hte

Re: get file

2004-08-25 Thread Mark Drew
checkout cfcontent, depends how you reference your files you can have them all somewhere that isnt web accessable and reference them like index.cfm?file=mypdf.pfd MD On Wed, 25 Aug 2004 11:28:31 -0400, CFDEV <[EMAIL PROTECTED]> wrote: > Hi, > > I have files on our server and I want people (once

RE: get file

2004-08-25 Thread Mark A. Kruger - CFG
You can use cfcontent to serve the file - it does not even need to be inside the web root. -Mark   -Original Message-   From: CFDEV [mailto:[EMAIL PROTECTED]   Sent: Wednesday, August 25, 2004 10:29 AM   To: CF-Talk   Subject: get file   Hi,   I have files on our server and I want

get file

2004-08-25 Thread CFDEV
Hi, I have files on our server and I want people (once they're logged in) to download a file without knowing hte path of the file.. Right now I was doing a popup with the file (a PDF) and it was alright.. but now that many anti-virus or google toolbar are blocking pop up file, I need another

RE: from web server get file on file server

2004-07-28 Thread Dave Watts
> CF 5.0 generally can't access network resources with > cfcontent because the cfcontent tag itself is running in the > Web server process, not the CF process. If you are running > Apache, you can change the Apache service's permissions to > access the resource and it will work. > > If you ar

Re: from web server get file on file server

2004-07-28 Thread Robert Munn
CF 5.0 generally can't access network resources with cfcontent because the cfcontent tag itself is running in the Web server process, not the CF process. If you are running Apache, you can change the Apache service's permissions to access the resource and it will work. If you are running IIS, you

Re: from web server get file on file server

2004-07-28 Thread Patrick McGeehan
Subject: From: Kristen Winsor <[EMAIL PROTECTED]> Date: Wed, 28 Jul 2004 12:20:13 -0400 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messages&threadid =34202&forumid=4#172317 Kristen, I have done my home work on this one before, here is the best I have found. Patrick M

Re: from web server get file on file server

2004-07-28 Thread Kristen Winsor
> > I was just testing w/ cfcontent..but this does not appear to let me > > > retrieve a file from another server?? > > If you are running CF 5.0 or earlier, that's true. If you are running > CFMX, cfcontent runs with the permissions of the server user that is > running the CF Application Serv

Re: from web server get file on file server

2004-07-28 Thread Robert Munn
> I was just testing w/ cfcontent..but this does not appear to let me > retrieve a file from another server?? If you are running CF 5.0 or earlier, that's true. If you are running CFMX, cfcontent runs with the permissions of the server user that is running the CF Application Server process. Here

from web server get file on file server

2004-07-28 Thread Kristen Winsor
On my website behind a password protected area I need to give the ability for the webuser to "retrieve" a PDFfile. I know I could open a one way port to allow the user to view the file simply by but I don't want the webusers (who have ADOBE writer) to be able to change anything on the file.(passw

RE: Get File Info

2004-05-21 Thread Barney Boisvert
Message- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED] > Sent: Friday, May 21, 2004 4:18 PM > To: CF-Talk > Subject: Get File Info > > Is there a CFX tag (has to work on CF 5) that can take a file > name and return it's physical size? CFDIRECTORY can be used,

Get File Info

2004-05-21 Thread Michael Dinowitz
Is there a CFX tag (has to work on CF 5) that can take a file name and return it's physical size? CFDIRECTORY can be used, but it's slow on large directories. I know the tag exists, but can't remember at the moment. Thanks [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [

RE: Get file list

2004-05-11 Thread Dave Carabetta
> >Is it possible to get a list of files in a folder to store in an array? I >can do it in vbscrip but I am new to CF and could do with some help. > Look in to the cfdirectory tag. It'll do everything you want and then some. Regards, Dave. [Todays Threads] [This Message] [Subscription] [F

RE: Get file list

2004-05-11 Thread Adkins, Randy
Check out CFDIRECTORY as well as CFFILE if you need. -Original Message- From: John Croney [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 2:52 PM To: CF-Talk Subject: Get file list Is it possible to get a list of files in a folder to store in an array? I can do it in vbscrip but I

RE: Get file list

2004-05-11 Thread Barney Boisvert
t accepts literal chars, as well as '?' and '*' wildcards. If you really need it as an array (rather than a query), you can follow the CFDIRECTORY up with this: Cheers, barneyb > -Original Message- > From: John Croney [mailto:[EMAIL PROTECTED] > Sent: Tuesday,

Re: Get file list

2004-05-11 Thread Stephen Moretti
John Croney wrote: > Is it possible to get a list of files in a folder to store in an > array? I can do it in vbscrip but I am new to CF and could do with > some help. > Have a look at CFDirectory.  It will return you a query with all sorts of info about files in a particular directory. Stephe

Get file list

2004-05-11 Thread John Croney
Is it possible to get a list of files in a folder to store in an array? I can do it in vbscrip but I am new to CF and could do with some help. Thanks John [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]