Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename Folders
Message
 
To
28/09/2000 16:34:01
Carlos Mergal
US Bankruptcy Court - Puerto Rico
San Juan, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00422285
Message ID:
00422291
Views:
17
>I'm trying to rename a folder with xxx.x syntax to xxx.y and the rename comamand does not works! Can anybody tell me how to rename a directory/folder name ?

You need to use either the Win32 API call MoveFile() or use the Windows Script Host. Using the WSH is far easier.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFolder = oFSO.GetFolder("C:\MyOldFolder")
oFolder.Name = "MyNewFolder"
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform