Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a directory
Message
From
22/07/2000 17:00:37
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00395201
Message ID:
00395900
Views:
9
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform