[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 831
  • Last Modified:

How to rename Folder by delphi

Hi Experts!

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

THanks
0
xtrue
Asked:
xtrue
1 Solution
 
saravananvgCommented:
Hello sir,

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


for eg

  if DirectoryExists('C:\avi') then
   RenameFile('C:\avi','C:\avi1');



with regards,
padmaja.
0
 
xtrueAuthor Commented:
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!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now