Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an API call to rename a folder
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00178253
Message ID:
00178284
Views:
31
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

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform