Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNCs / machine names / GetFile / filepath issues
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00436386
Message ID:
00436468
Views:
16
An option uses GETFILE to let the user find MSWord documents to use as a means of performing a "mail merge" of sorts. These MSWord document filenames are stored in a VFP table. Example:
>DocName
>----------------------------
>C:\My Documents\WordDoc1.Doc
>
>Another option performs an IF FILE() on the DOCNAME field value and then prints the document using WORD. Works fine.
>But if a user on another workstation attempts to use one of these Word docs that another user stored in the table, the IF FILE() fails because the file exists on another workstation (or server) and is not local.
>I want to avoid:
>1) creating the same directory structure on every workstation
>2) copying the WORD docs to each workstation (and recopying when they make changes or add new docs)
Hi Chris,
I would consider forcing the Users to store all of their files on a common shared resource (like a server), each could have there own folder, and then all you need to store is the relative path to the DOC file. If this is not an option then you might consider storing the serial ID of the C: drive (see Files Section for a file with this code in it) along with the file names. Then filter on this so that each User can only see Doc's that are on their own local drive.
Just an idea.
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform