How can I localize a file on Server

I need to localize a file on a server. First I try get the filelength by using

sourceComplete = “localhost!!c:\Documents and settings\Testfile.doc”

lenSourceFile=Filelen(sourcecomplete)

But all I get is the Message “File not found”

Trying

Filelist=Dir$(“localhost!!c:\Documents and settings\Testfile.doc”)

to get a list of files in directory just brings out “illegal function call”

How can I manage this problem?

Subject: Re: How can I localize a file on Server

You’re mixing two different filesystem contexts – Dir$ and FileLen commands are OS type commands, and the server!! sytax is Notes/Domino network pathing.

If you’re looking at Word .doc files, you can’t do it over the network via Notes protocols, you’d have to use UNC pathing/mapping at the OS level (\server\dir\file.doc). If you’re accessing the file locally (which I assume you are since you’re using LocalHost), just drop the LocalHost!! from your path.