Thread: Edit mp3 File Names

  1. #16
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378
    yes, but then hypothetically...that means i have to recompile whatever i change. i use Fedora Core 3.. so basically, i'm lazy and wait for rpm's to be made so then i install the rpm and booyah, updated whatever. lol also if i could change options to accomplish what i want, i would rather do that as i've had little to no experience editing the programs i use. however, i do know how to make a program from the source, so trying sounds fun.


    thanks lol, that takes away a lot of the curiousity. even though his code now becomes useless lol
    Registered Linux User #380033. Be counted: http://counter.li.org

  2. #17
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> Perhaps the real answer is to pick different options on your CD burning software?
    CDR's are less than a dollar - get the options right and burn a new one.

    Or use anonytmouse's script. Save the first example in a dot VBS file, or the second example in a dot JS file. Edit the sFolder variable and double click the file - you're done.

    gg

  3. #18
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378
    i know how much CDR's are, i work at staples they're usually less then a quarter too (they're about 20 cents a piece) but ya see.. its called a BACKUP cd for a reason. lol this time, it was made so that i could reinstall windows & linux because at the time, i had no windows and windows wouldn't install. but then i found a way to get both (i had to unplug one of my hard drives as it was causing things to stop working after i booted off the cd-rom and it told me it was checking my hardware) so i burned a backup cd of whatever i wanted to save, killed the partition and went on with reinstalling

    but thanks for the extension suggestion lol




    is there a way you can make it so it doesn't make you click "Ok" for every filename it changes? (worked like a dream btw)
    Last edited by willc0de4food; 04-10-2005 at 11:58 AM.
    Registered Linux User #380033. Be counted: http://counter.li.org

  4. #19
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Just remove "WScript.Echo" line. (Surely, you could've figured that out with some effort.)

    Code:
    // RenameSomeFiles.js
    
    var sFolder = "C:\\SomeFiles\\"; // Don't forget trailing backslash
    
    var fso = new ActiveXObject("Scripting.FileSystemObject")
    for ( var e = new Enumerator(fso.GetFolder(sFolder).Files);
          !e.atEnd();
          e.moveNext() )
    {
       var sNewFileName = e.item().Name.replace(/_/g, " ");
       sNewFileName = sNewFileName.toLowerCase();
    
       if ( sNewFileName != e.item().Name )
       {
    //      WScript.Echo("Changing '" + e.item().Name + "' to '" +
    //                   sNewFileName + "'..." + "\r\n");
    
          e.item().Move(sFolder + sNewFileName);
       }
    }
    gg

  5. #20
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378
    haha...wow. yea.. but it was really early in the morning and i was still up, lol. *shrug* thanks tho, haha
    Registered Linux User #380033. Be counted: http://counter.li.org

  6. #21
    Registered User
    Join Date
    Apr 2005
    Posts
    12
    btw if you're still interested in sorting through directories, renaming files etc...

    http://www.cs.cf.ac.uk/Dave/C/node20...00000000000000

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM