Wiki Home

Vfp Unc


Namespace: WIN_COM_API
VFP supports UNC names ( \\servername\sharename\path\path\path\file.ext ) in many ways:

USE \\server\share\path\table.dbf


However, I never tried this before, but this actually works:

CD \\Server\Share\Path\Path\Path


Now, these functions return the following:

SET('DEFAULT') = "\\server\share"
CURDIR() = "\path\path\path\"


However, if you try to start a DOS command shell now, it won't start, because the default drive is invalid.

So, VFP really supports UNC!
( Topic last updated: 2003.05.29 01:32:02 PM )