Page 1 of 1

ExamineDirectory() and UNC Paths (Windows) (RESOLVED)

Posted: Fri Aug 21, 2009 3:59 pm
by ebs
Sorry about wasting everybody's time - I had the UNC path specified incorrectly. It all works fine.

Can anyone tell me how (if) I can use the PB FileSystem functions to examine UNC paths?

UNC paths are specified like this: \\server\folder\subfolder.

Using ExamineDirectory(0, "\\server\folder\subfolder", "*.*") doesn't work.

However, if I have a drive mapped to the UNC path folder (M for example),
Examine Directory(0, "M:\subfolder", "*.*") works fine.

This would make working with files stored on a server much easier,
if there is a way to do it.

Thanks,
Eric

Edited on 21 August 2009 (ebs)

Posted: Fri Aug 21, 2009 7:03 pm
by ABBKlaus
unless someone else falls into the same trap :twisted:

http://en.wikipedia.org/wiki/Path_%28computing%29
wikipedia wrote:Microsoft Windows uses the following types of paths:

local file system (LFS), such as C:\File,
uniform naming convention (UNC), such as \\Server\Volume\File,
Long UNC or UNCW, such as \\?\C:\File or \\?\UNC\Server\Volume\File.