• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Managing my music collection with java (NO GUI)

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to rename all the mp3 in my pen-drive to all lowercase(for starters). Can anyone give me suggestions ? How do i give my program the path of my pen-drive ? I guess, it should be simple after that...list() , find only files using isFile() , take each file and do toLowerCase() and finally renameTo() .... right ?

i use windows 7 home 64-bit. It does not let me change from C to any other drive-why ?

 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a program argument (the Strings you receive with main(String[] args)) or use a JFileChooser or many other ways. What you think is appropriate. For the rest, your spot on.
 
Luigi Plinge
Ranch Hand
Posts: 441
IntelliJ IDE Scala Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are utilities people have already written for this kind of thing. E.g. http://www.bulkrenameutility.co.uk/Main_Intro.php

Alternatively you could install Cygwin, which is Unix for Windows, and file renaming is a short script away...

To change to another drive in the command prompt, just type the name of that drive, without the "cd", e.g. "D:".
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luigi Plinge wrote:There are utilities people have already written for this kind of thing. E.g. http://www.bulkrenameutility.co.uk/Main_Intro.php

Alternatively you could install Cygwin, which is Unix for Windows, and file renaming is a short script away...

To change to another drive in the command prompt, just type the name of that drive, without the "cd", e.g. "D:".


Thanks for the utility. But , i want to apply my knowledge by making such a program. Can you guide me to make the program ?

 
Luigi Plinge
Ranch Hand
Posts: 441
IntelliJ IDE Scala Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am probably not the right man to ask, but I'm sure if you post your code so far some knowledgable types round here will comment on it.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know how to give the path to the music folder to my java program correctly and store it there. I suppose it will be easy after that, just like the examples in my books.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//sorry for the bump...i wish someone would give me the starting step.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic