At 09:10 PM 8/31/2006 +0100, Nick wrote: >Chet wrote: > > > I think he's trying to do it in a VFP program...? > >Exactly, there are a few thousand directories, moving each one manually >might take some time ;) ...
I suggest MoveFile (in the Win32 API) for the actual 'move' step. Some examples below
*-- MoveFile API - this will 'move' files and actually move directories *-- Sample Call: *-- MoveFile('C:\test\source\one', 'c:\test\new\one') DECLARE INTEGER MoveFile IN WIN32API STRING @cFrom, STRING at cTo
Example call: nX = MoveFile("C:\original\folder\place", "c:\new\folder\place")
Note: the string should *not* have a trailing backslash .D.O.T
HTH, -Charlie
©2006 Charlie Coleman |