Rename directory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.
I want to walk a certain directory and rename all it´s subdirectories. The
Directory class has a method Move but no Rename method. Should I then use
Move instead?
Gudni
 
Yes unless you like using native methods and call SHFileOperation found in
shell32.dll to rename file/folders

Gabriel Lozano-Morán
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Direcory Rename 2
FileSystemWatcher Folder Rename 1
File operations 2
Renaming a file 5
Spawning programs from a WinForms app 2
Re: looking for "xmove" 29
Directory.Move 3
Rename Folder 3

Back
Top