Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-20-2007, 10:39 AM   #1 (permalink)
n00blike001
Recruit
 
Join Date: Dec 2007
Posts: 2
n00blike001 is on a distinguished road
Editing file names

I have a lot of mp3s with all lower or upper case letters. I want to have them in this format "Name Of Artist - Title Of Song" could C++ do something like this?

I took the intro C++ and did the copy file program.

how would i code it so it makes the first letter of every word a capitol and keep all others lower case?

Would you use C++ or another language?

Im running win XP

thanks!
n00blike001 is offline   Reply With Quote
Old 12-21-2007, 03:27 AM   #2 (permalink)
messenjah
Recruit
 
Join Date: Dec 2007
Posts: 2
messenjah is on a distinguished road
I would immediately think of perl for your problem. It has great flexibility in handling strings. You also have the MP3::Tag library which would essentially allow you to read and write tags to your mp3 files.
messenjah is offline   Reply With Quote
Old 12-21-2007, 03:36 AM   #3 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 733
DJMaze is on a distinguished road
does Perl handle unicode?

Right, n00blike001 goodluck with UCI it's a PITA
__________________

UT: Ultra-kill... God like!
DJMaze is online now   Reply With Quote
Old 12-21-2007, 03:55 PM   #4 (permalink)
n00blike001
Recruit
 
Join Date: Dec 2007
Posts: 2
n00blike001 is on a distinguished road
after talking to some more computer ppl i found a program that does this already!

Its called batchrename

i just ran a test here on my comp at work and worked awsome!

Who ever needs to rename there mp3s or other files this is the way to do it!

This program works buy rules. Here is how i got mine looking right.
1. all lower case
2. Cap. first letter of ever word. <= prebuilt (they have popular rules)

only glitch i found was that if you have numbers in a word it thinks the next letter is a new word.
i.e.
w00t => W00T
n00blike001 is offline   Reply With Quote
Old 12-21-2007, 07:26 PM   #5 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
@DJMaze - perl does support unicode via pragmas. To set the local encoding to be UTF8 for example you can place the line 'use utf8;' in your script.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-22-2007, 05:47 AM   #6 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 733
DJMaze is on a distinguished road
Ah ok, because filenames on XP are UTF-16 Little Endian.
__________________

UT: Ultra-kill... God like!
DJMaze is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log4j created file not able to delete while testing my application?? j.gohel Java 12 04-07-2006 11:52 AM
dynamic allocation..urgent help needed!!! kashif Standard C, C++ 4 04-21-2003 09:50 AM


All times are GMT -8. The time now is 03:48 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting