Discussion:
HELP with fetching file from field
(too old to reply)
John Cosmas
2005-07-11 21:44:26 UTC
Permalink
I have a field that contains a file which I would like to copy to the local
hard drive. Please make adjustments and suggestions to the code below.

USE E:\GIMDATA07042005\Database\FILENOTE0008
SCAN
SCATTER MEMVAR
COPY FILENOTE0008.Document TO C:\*.*

ENDSCAN

The .Document field stores the a physical file in it (i.e. PDF, TXT, TIFF)
which I would like to retrieve and place onto disk. Any assistance would be
most appreciated.

John
John Cosmas
2005-07-11 21:57:05 UTC
Permalink
The field 'Document' is typed 'General'
Post by John Cosmas
I have a field that contains a file which I would like to copy to the local
hard drive. Please make adjustments and suggestions to the code below.
USE E:\GIMDATA07042005\Database\FILENOTE0008
SCAN
SCATTER MEMVAR
COPY FILENOTE0008.Document TO C:\*.*
ENDSCAN
The .Document field stores the a physical file in it (i.e. PDF, TXT, TIFF)
which I would like to retrieve and place onto disk. Any assistance would
be most appreciated.
John
Cindy Winegarden
2005-07-11 22:19:45 UTC
Permalink
Hi John,

You haven't said whether your field is a Memo or General field. If you have
a Memo field you can use Copy Memo or StrToFile(). For a General field you
may have to use low-level file functions.
--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
***@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
Post by John Cosmas
I have a field that contains a file which I would like to copy to the local
hard drive. Please make adjustments and suggestions to the code below.
USE E:\GIMDATA07042005\Database\FILENOTE0008
SCAN
SCATTER MEMVAR
COPY FILENOTE0008.Document TO C:\*.*
ENDSCAN
The .Document field stores the a physical file in it (i.e. PDF, TXT, TIFF)
which I would like to retrieve and place onto disk. Any assistance would
be most appreciated.
John
Loading...