>>I guess your desired network directory is not yet mapped into a specific drive (i.e. f:\; g:\ etc.).
>
>You lost me here. How do I map the network into a specific drive?
>And why does GetFile() show the network, and GetDir() doesn't?
A bunch of ways; you can use:
DECLARE INTEGER WNetAddConnection IN Win32API ;
STRING cRemoteUNC, ;
STRING cPassword, ;
STRING cLocalDrive
nMyResult = WNetAddConnection('\\ServerMachine\ShareName\','MyPassword','Z:')
nMyResult should be 0 if the API call succeeds.
You can fire an interactive dialog via:
DECLARE INTEGER WNetConnectionDialog IN Win32API ;
INTEGER nWindowHandle, ;
INTEGER nDialogType
DECLARE INTEGER GetActiveWindow IN Win32API
nMyResult = WNetConnectionDialog(GetActiveWindow(),1)
nMyResult should be 0 if a drive is mapped via the dialog.
Ed