On 4 Apr 2007 at 19:41, Bernd Eilers wrote:
> This seems to be a matter of missing slashes, eg. the first two in
> file:// already belong to the scheme part of the URL and not to it´s
> path.
>
> Something like the following worked for me:
>
> Sub FindFile()
> Dim oFileAccess As Object
> Dim rVal as Boolean
>
> Set oFileAccess =
> CreateUnoService("com.sun.star.ucb.SimpleFileAccess")
> rVal = oFileAccess.exists("file://///Olympus/stuart/test.sxc")
>
> End Sub
I have now tried that on the system and it still doesn't give a True
return on the network drive where the file exists.
I shall try a work-around using loadComponentFromURL() which should
return a NULL value where the file does not exist and which I know
will actually load a file from the network drive.
Thanks for your thoughts and help.
Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]