main logo
Subject: RE: Move directories
Author: "Lew Schwartz"
Posted: 2006/08/31 16:04:14
 
View Entire Thread
New Search


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: profoxtech-bounces AT leafe .DO.T com [mailto:profoxtech-bounces@leafe.com]
On Behalf Of Charlie Coleman
Sent: Thursday, August 31, 2006 4:35 PM
To: profoxtech AT leafe .DO.T com
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 AT cTo


Example call:
nX = MoveFile("C:\original\folder\place", "c:\new\folder\place")

Note: the string should *not* have a trailing backslash .DO.T

HTH,
-Charlie




[excessive quoting removed by server]


 
©2006 Lew Schwartz
<-- Prior Message New Search Next Message -->