How to rename Folder by delphi

Posted on 2006-04-16
Last Modified: 2010-10-05
Hi Experts!

I want to rename folder and if there is exist, will combine it together
Can someone give me and idea?

Question by:xtrue
    LVL 6

    Accepted Solution

    Hello sir,

      if DirectoryExists(Path of the folder) then
        RenameFile(oldpathof the folder,newpath of the folder);

    for eg

      if DirectoryExists('C:\avi') then

    with regards,

    Author Comment

    Thanks padmaja

    But this still not worked if there the same name of directory exists
    I wish to move all file in my Dir to new Dir together..

    Thanks again for your help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now