[futurebasic] Re: [FB] File Path

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Sun, 22 Jan 2006 15:48:27 +1300
Russ Pagel wrote:

> 1.  The finder seems to assume that all AFP calls are to a server.   
> If the
> path name is:
>
> afp://Macintosh%20HD/Users/russ/Desktop/Untitled%204.txt
>
> which is my own computer, then the first thing the finder tries is to
> connect to a server called Macintosh HD which is of course wrong.
>
>
> 2. I'm using the following routine from the Examples folder to get  
> the path
> of the file.  I'm not seeing the name of the server  
> "corpserver.company.com"
> but simply the /LBG,etc... part.  Is there a way to get the name of  
> the
> server so I can build a full path?

This gets the name set in System Preferences > Sharing

'----------
include "Util_ComputerNames.incl"
print fn FBGetSystemName$( _FBComputerName )
do
HandleEvents
until 0
'----------

For further afp discussion, see <http://www.opendoor.com/asip/UG/ 
AFP_URLs.html>

Robert P.