API code for 'Renaming a Directory'

  • Thread starter Thread starter Joakim Norrman
  • Start date Start date
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?
 
Using File System Object...

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

If this post helps click Yes
 
Back
Top