Reply to Re: Renaming a file but preserving the extension

Your name:

Reply:


Posted by Curtis on 02/24/07 09:26

Toby A Inkster wrote:
> Curtis wrote:
>
>> A little more involved, but this will allow for extensions like tar.gz
>> or tar.bz2, etc. It gets the position in the file name, of the first
>> ".", and keeps everything after.
>> [...]
>
> What about "nedit-5.5-src.tar.gz"? Your code will rename it to
> "newname.5-src.tar.gz" whereas ideally it would be named "newname.tar.gz".
>

Oh, I see what you meant now. I guess, if needed, one could store some
file extensions in an array to aid with more accurate renaming. Hehe,
I thought I had it. :P

--
Curtis, http://dyersweb.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация