API code for 'Renaming a Directory'

J

Joakim Norrman

I have not found a command in VBA to rename a directory in Windows Explorer.
Does anyone know the API code for renaming a directory?
 
J

Jacob Skaria

Using File System Object...

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFolder "C:\temp1" , "C:\temp2"

If this post helps click Yes
 

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

Top