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:
00172505
Views:
25
>>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,

Make that:
llresult = (MoveFile(@lccurrent, @lcnew) # 0)
to return a logical value. Oh boy, it's Monday isn't it?
George

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

Click here to load this message in the networking platform