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 wrote:
Hmmm...I didn't realize that would work for this....figured 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 FileName2."
Thanks! --Mike
On 3/25/2020 3:51 PM, Vince Teachout wrote:
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 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 had a better idea.