Gotta run, so need to keep it short, but you can call a CFDirectory on that file:
<cfdirectory action="LIST" directory="#ExpandPath( './mp3/' )#" name="qFileSize" filter="my_mp3_file.mp3" /> This will return a cFdirectory query in which qFileSize.size will have the name of the file (Check for qFileSize.REcordCount first just to be sure or wrap in Val()). The FILTER attribute makes sure it doesn'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 to get file sizes dynamically? 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 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:255540 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4