Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a directory
Message
De
22/07/2000 17:00:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395201
Message ID:
00395900
Vues:
10
>>Try using rename() from the C++ runtime:
>>
>>Declare Integer rename in MSVCRT.dll As _rename String @oldname, String @newname
>>md c:\foo
>>lsOld = "c:\foo"
>>lsNew = "c:\newfoo"
>>_rename(@lsOld, @lsNew)
>>
>>Note that you have to alias the function name because VFP already has a RENAME command.
>

There's no value to it - the VC runtime rename is a thin wrapper on the KERNEL32 MoveFile() API call.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform