General information
Title:
UNCs / machine names / GetFile / filepath issues
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only