Yes, you can also accomplish the same thing with Windows scripting:
folderspec='c:\foo'
cNewName = 'foobar'
fso = CreateObject("Scripting.FileSystemObject")
oFolder = fso.GetFolder(folderspec)
oFolder.Name = cNewName
This example renames folder c:\foo to foobar
>Juan,
>
>There's probably a cool WSH script that will do it, until Ed chimes in with that here's a good old DOS standby *g*
>
>local lcCommand
>lcCommand = '[move "' + lcOldDirectory + '" "' + lcNewDirectory + '"]'
>run &lcCommand
>
>>I know this question may have probably come up before. Is there an API call that would allow me to rename a folder?
kenweber
GCom2 Solutions
Microsoft Certified Professional