Piet wrote: > If I first log in to the computer with the datafile (by the log in to server window) and the volume ‘Ann’ is displayed on my desktop, I can read to the file with the path > err = fn FD_PathGetFSRef ( fn CFSTR( "Volumes/Ann/Public Ann/Datafolder" ), 0,@Datadirectory) > > But is is possible to let FB make the connection to that server, so the user of the app doesn’t have to make that connection by themself ? > Or is it possible to let FB open the “connect to server window” ? FSResolveAliasFile() given an alias to a file or directory on a server, will attempt to mount the server if it is offline. Make a Finder alias of the directory in Ann, drag it to your desktop, and ensure it has the name 'Datafolder alias' for the demo below. '------------------ include "Util_FileDirectory.incl" toolbox fn FSResolveAliasFile( FSRef * theRef, Boolean resolveAliasChains, Boolean * targetIsFolder, Boolean * wasAliased ) = OSErr dim as FSRef dataDirectory dim as OSStatus err dim as Boolean isFolder, wasAliased err = fn FD_PathGetFSRef( fn CFSTR( "/Users/Piet/Desktop/Datafolder alias" ), NULL, @dataDirectory ) if ( err == _noErr ) then err = fn FSResolveAliasFile( @dataDirectory, _true, @isFolder, @wasAliased ) long if ( err == _noErr ) // dataDirectory now points to whatever the alias pointed to xelse stop "Error " err end if '------------------ Robert P.