I haven't tested all of the win api alternatives, but judging from the ones I have tested, I'd guess that all fox disk io functions use the api, too. I guess this is a bit of a no brainer, since I seem to remember that talking to disk drives _only_ through winapi was an innovation in a previous version of windows. Seem reasonable.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Coleman Sent: Thursday, August 31, 2006 4:35 PM To: [EMAIL PROTECTED] Subject: RE: Move directories 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 @cTo Example call: nX = MoveFile("C:\original\folder\place", "c:\new\folder\place") Note: the string should *not* have a trailing backslash. HTH, -Charlie [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

