Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename Folders
Message
 
À
28/09/2000 16:34:01
Carlos Mergal
US Bankruptcy Court - Puerto Rico
San Juan, Porto Rico
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00422285
Message ID:
00422291
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform