CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Rename a folder name

  1. #1
    Join Date
    Feb 2019
    Posts
    5

    Rename a folder name

    Hello everybody,,

    Is it possible tot do this in Java. I m a beginner.

    Changing 12 - ABC
    Into ABC - 12

    All title of folder contains only one "-"

    Thanks for all

    Habiler

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,736

  3. #3
    Join Date
    Feb 2019
    Posts
    5

    Re: Rename a folder name

    Thanks VictorN

    But I have a lot of files in a directory

    C:\Pers\123 - ABC
    C:\Pers\ 456 - DEF

    tO CHANGE IN


    C:\Pers\ABC - 123
    C:\Pers\DEF - 456

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,736

    Re: Rename a folder name

    Do it in a loop. Also have a look at the string operations in java
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)