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
Go Back   Code Forums > Application and Web Development > Standard C, C++
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2007, 09: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, 02: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, 02:36 AM   #3 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
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 offline   Reply With Quote
Old 12-21-2007, 02: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, 06:26 PM   #5 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 595
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, 04:47 AM   #6 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Ah ok, because filenames on XP are UTF-16 Little Endian.
__________________

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


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

vB 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 10:52 AM
.htaccess -- Image Hotlinking Prevention DavH27 HTML / CSS 0 08-27-2004 03:43 AM
.htaccess -- Custom Error Pages v1.1 DavH27 HTML / CSS 0 08-26-2004 04:40 PM
dynamic allocation..urgent help needed!!! kashif Standard C, C++ 4 04-21-2003 08:50 AM
Dynamic File Includes Sarlok ASP Classic 0 02-24-2003 12:49 PM


All times are GMT -8. The time now is 10:08 PM.


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





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle