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




_______________________________________________
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.

Reply via email to