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
 
Top