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

Everything else that doesn't fall into one of the other PB categories.
ebs
Enthusiast
Enthusiast
Posts: 567
Joined: Fri Apr 25, 2003 11:08 pm

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

Post 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)
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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.
Post Reply