Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I have VFP7 to SET PATH to a UNCName?

Status
Not open for further replies.

castor2003

Programmer
Jul 5, 2003
115
LC
It is important that my users are able to jump from server to server for data so I want to set Path to all three servers. Those servers are mapped differently on the various workstations.

As a work around, I have a function that gives me the uncpath, However when I use it with FILE() to test the exist of the file in that location it allows returns .f.. It seems that FILE() does not tolerate UNCNames too.

Are my observations correct? What more can I try?
 
Castor,
I just tried these two statements and they seem to work in VFP 7.0 SP1:
Code:
?FILE("W:\VFP Applications\ABEM\aka.zip")
?FILE("\\melange_41\win95\VFP Applications\ABEM\aka.zip")
Note that if you have any embedded spaces, it's critical to enclose it all in quotes or use an indirect reference. So:
Code:
lcMyFile = "\\melange_41\win95\VFP Applications\ABEM\aka.zip"
?File(&lcMyFile) && doesn't work
?File("&lcMyFile") && works
?File((lcMyFile)) && works
Rick

 
Some of the SERVERS that I made mention of include WIN98 machines with shares. I set path to the share names at no avail.
 
Castor,
Code:
* On Novell File Sever
lcMyPath = "\\melange_41\win95\VFP Applications\ABEM\"
SET PATH to lcMyPath && doesn't work
SET PATH to &lcMyPath && works
SET PATH to (lcMyPath) && works
*
* On Windows 98 SE shared directory - Actually F:\Shared\Gamestuff
lcMyPath = "\\obsolete98\gamestuff\"
SET PATH to (lcMyPath) && works
SET DEFAULT to (lcMyPath) && works - took awhile!
DIR *.*
Note both of the above examples were done in VFP 7.0 SP1 on XP Pro SP1. (They also seem to work in VFP 6.0 SP5 and VFP 8.0!)

Rick
 
This beats me...
I will have a go at it again in the morning.

Thanks Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top