Ask a Question related to Macromedia ColdFusion, Design and Development.
-
dmurray1414 #1
Removing the extension off a returned filename
I am getting a list of files back from the cfdirectory command, and I need to hack off the file extension to present the file. What is the best way to do this?
Thanks
dmurray1414 Guest
-
"The filename or extension is too long" Error when opening Acrobat 6.0
I get the same error. It just hangs at the splash screen, taking 100% CPU and then after about an hour I get that error. When I click ok, I get a... -
Getting only the filename ??
I'm creating a player that allows you to have multiple files stacked and play anyone of them. The problem now is i need to get only the filename out... -
Get .PHP Filename?
I've been looking thru my PHP functions and can't find what I need - is there a function that will tell me what .php file is currently executing? ... -
Invalid filename
I am a beginner for Dreamweaver MX. When i use the function of inserting interactive image by: Insert --> Interactive Images --> Flash Button /... -
Removing desktop icon from one account is removing from all accounts
Using XP Professional. I want the Guest account to have only a few icons. The other two accounts should have many more. When I remove the icon... -
jdeline #2
Re: Seperating the extension off a returned filename
Treat the filename as a period-delimited list. The first list element is the filename and the second list element is the extension.
jdeline Guest
-
dmurray1414 #3
Re: Seperating the extension off a returned filename
Thanks, I ended up using the Len and Mid functions to work something out.
dmurray1414 Guest
-
Mike Greider #4
Re: Seperating the extension off a returned filename
Another way to slice this cat is to reverse the string and find the period.
That way if the extension is longer (or shorter) than 3 characters, the code
will still work.
Something like this ...
reverse( mid(reverse(targetString), 1, find(".", reverse(targetString), 1)) )
I'm sure it can be more elegant and whatnot, but you get the idea.
Mike Greider Guest



Reply With Quote

