oFSO = CREATEOBJECT("Scripting.FileSystemObject") oFolder = oFSO.GetFolder("C:\dbaccount2000") oFolder.Name = "dbaccount2001"If you don't have access to the WSH, you can use the API's MoveFile() function:
DECLARE INTEGER MoveFile IN Win32API; STRING @lpcurrentname, STRING @lpnewname * lcoldname is the old directory name * lcnewname is the new directory name llresult = (MoveFile(@lcoldname, @lcnewname) # 0)llresult will be .T. if the function succeeds.