Thread: File Names

  1. #1
    nickeax
    Guest

    Red face File Names

    Hello, I have another question... I was wondering if anyone knows of an API for changing filenames in a directory. This isn't what it sounds like. Someone wants me to write a little app for them that shortens names of mp3 files so they won't get chopped by the burning program. I will parse these file names and remove extraneous formatting and unnecessary words and then re-name each file in it's edited form, if that's possible! Thanks in advance.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    1
    Code:
    rename(old_filename, new_filename);

  3. #3
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Or MoveFile().
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  4. #4
    nickeax
    Guest

    thanx

    Thanks for the info guys!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File being filled with NULLs
    By Tigers! in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2009, 05:28 PM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM