RE: Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread Richard Kaye
Behalf Of Charlie Coleman Sent: Wednesday, March 25, 2020 4:58 PM To: profoxt...@leafe.com Subject: Re: Best way to move a file (other than COPY FILE and DELETE FILE) Actually, I think VFP is using the Windows "rename" API (whatever it's called) to do the function. A long time ago I did a

Re: Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread Charlie Coleman
Actually, I think VFP is using the Windows "rename" API (whatever it's called) to do the function. A long time ago I did a test between a C program to 'move files' and a VFP app to 'move files'. Something like several thousand files, over a Gigabyte as I recall. VFP was just as fast. In fact it

Re: Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread Mike
Just my 2 cents, but I would venture a guess that what VFP is actually doing in the background to perform a "RENAME" is to -- copy the file to the new location -- delete the original But, it is more convenient to do one step (for your application) than two. Mike MB Software Solutions, LLC

Re: Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread MB Software Solutions, LLC
Hmmm...I didn't realize that would work for thisfigured it was just for the files in the directory where they existed, but sure enough, from the VFP help text:  "If FileName1 and FileName2 are in different directories or folders, FileName1 is moved into the directory or folder of

Re: Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread Vince Teachout
The vfp RENAME command:     RENAME (currentpath\file)   TO (newpath\file) On 03/25/20 3:44 PM, MB Software Solutions, LLC wrote: VFP9SP2 on Win10 Pro clients We've got a document management system (DMS) we wrote for a client and we need to "archive" some files by moving them to a subfolder

Best way to move a file (other than COPY FILE and DELETE FILE)

2020-03-25 Thread MB Software Solutions, LLC
VFP9SP2 on Win10 Pro clients We've got a document management system (DMS) we wrote for a client and we need to "archive" some files by moving them to a subfolder from the main one.  The first idea is to use VFP's COPY FILE command and then just delete it once done.  I wanted to ask if anyone