Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a Directory Within VFP5
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00172494
Message ID:
00172503
Views:
21
>Does anyone know how to rename a directory within VFP5 without using the DOS rename command?

Hi Jeff,

An API call can do the trick:
DECLARE SHORT MoveFile IN Win32API;
   STRING @lpcurrentname, STRING @lpnewname
* lccurrent is the current name
* lcnew is the new name
llresult = MoveFile(@lccurrent, @lcnew)
hth,
George

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

Click here to load this message in the networking platform