Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNCs / machine names / GetFile / filepath issues
Message
From
31/10/2000 13:07:37
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00436386
Message ID:
00436425
Views:
30
Hi Chris,

As you know where the data is stored, why not instruct (or force) the users to store the documents in a directory relative to the data directory.

Eg F:\Apps\YourApp\Data, F:\Apps\YourApp\Docs

HTH

Liam



>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)
>
>I have looked at GETUNCPATH.PRG but am still having trouble figuring out how to deal w/ this problem. I thought that if the first IF FILE() fails, then try IF FILE() while spinning thru the UNCs of all the mapped drive letters but that doesnt sound too appealing. I could find an older version of the same filename on a different PC.
>
>Any ideas?
Liam O'Hagan
MCP VFP Desktop Apps
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform