>>Is there a command within FoxPro to rename an entire directory?
>
>Update: Do NOT use RD. It's something else. Looking it up now. Ok, this is what I found:
http://www.computerhope.com/renamehl.htm>
>
You can use the DOS command RD from within your code.Maybe this?
LPARAMETERS tcoldname, tcnewname
DECLARE INTEGER MoveFile IN Win32API STRING @lpcurrentname, STRING @lpnewname
LOCAL lcoldname, lcnewname, llresult
lcoldname = tcoldname
lcnewname = tcnewname
llresult = (MoveFile(@lcoldname, @lcnewname) # 0)
or this???
LPARAMETERS tcoldname, tcnewname
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFolder = oFSO.GetFolder(tcoldname)
oFolder.Name = tcnewname
ICQ 10556 (ya), 254117