• Post Reply Bookmark Topic Watch Topic
  • New Topic

Move the file from one folder to another??  RSS feed

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all friends,
I want to move means cut the file from one folder and paste it in another folder programatically just like we do manually by (Ctrl+x) command on key board.Can any one plz guide me how i can do that.
Regards
Bikash
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the renameTo() method in the File class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!