>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement