oFSO = CREATEOBJECT("Scripting.FileSystemObject") * lcfolder is the folder to change the name of oFolder = oFSO.GetFolder(lcfolder) oFolder.Name = "NewName"Otherwise, you'd have to use the MoveFile() API call. Here's a funciton I wrote a few years ago to do this
* FUNCTION RenDir.prg * AUTHOR: George Tasker * DATE: July 2, 1998 - 1:38 PM * PURPOSE: Renames a directory 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