Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename Directories
Message
De
11/09/2002 16:54:10
 
 
À
11/09/2002 15:49:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00699499
Message ID:
00699531
Vues:
13
The intuitive "MoveFile" API function works:
DECLARE INTEGER MoveFile IN WIN32API STRING source, STRING destination
? MoveFile ("c:\OldDir", 'd:\NewDir')
Where success returns 1, failure 0. Note: For directories the trailing "\" appears to be optional.
Or you can use the Windows Script Host (if installed)
oWSH = CREATEOBJECT("Scripting.FileSystemObject")
oWFH.MoveFolder("C:\OldDir", "C:\NewDir")
Rick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform