Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename Directories - How?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00749000
Message ID:
00749093
Views:
20
Thank you for sharing this approach!

>DECLARE INTEGER GetLastError IN kernel32
>
>DECLARE INTEGER MoveFile IN kernel32;
> STRING lpExistingFileName, STRING lpNewFileName
>
>IF MoveFile('d:\mydir', 'd:\yourdir') = 0
>* 2 = ERROR_FILE_NOT_FOUND
>* other errors are possible
> ? 'Error code:', GetLastError()
>ELSE
>* renamed successfully
>ENDIF
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform