>FUNCTION RenDir
>
>LPARAMETERS pcoldname, pcnewname
>
>DECLARE SHORT MoveFile IN Win32API;
> STRING @lpcurrentname, STRING @lpnewname
>LOCAL lcoldname, lcnewname, llresult
>lcoldname = pcoldname
>lcnewname = pcnewname
>llresult = (MoveFile(@lcoldname, @lcnewname) # 0)
>RETURN llresult
>
>The thing I would caution you about is to make sure that the directory is named back when the program terminates. You might also want to include a check for this directory before you try to rename. Its presence may be indicative a a previous instance abnormally terminating. This would require that the directory's real be restored. Of course, changing the name back and forth can be accomplished through use of this function.
>
>hth,
George,
Once again - thanks, it works.
By the way, where can I find info on writing API calls. Focus.??? I know there are alot of calls in that code. I am just hesitant to use it due to my inexperience in this area. Is there a reference manual I should purchase or available thats not too difficult to decipher?
Robert
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only