Access mounted volumes on Windows from LC?
benr_mc at cogapp.com
Thu Jun 30 15:37:55 CEST 2016
I spoke too soon.
With the volume mounted, accessing it by drive letter works (so I assume that
this isn't a permissions problem); but using the UNC fails.
If I use "answer folder" I get the path with drive letter, e.g.
setting the defaultFolder to this path has the expected effect, using "there
is a folder..." on this path returns true, etc.
But if I use the "UNC" version of path:
then setting the defaultFolder returns "can't open directory", using "there is
a folder..." return false.
Reversing the slashes makes no difference.
SysError returns either 2 or 3 - seemingly randomly. Apparently
2 = ERROR_FILE_NOT_FOUND
3 = ERROR_PATH_NOT_FOUND
This is on Windows Server 2008 R2 Enterprise.
Previous answers suggested that some people have succeeded in accessing
directories using UNC paths. Can you share how you've done this?
On 29/06/2016 17:07, Ben Rubinstein wrote:
> It wasn't a mistyped path.... but it was my making a mistake! In my lack of
> Windows knowledge, I thought that the volume was mounted - but actually that
> was a server that was 'accessible', but with none of it's volume's mounted.
> Thanks to everyone for their assistance.
> On 22/06/2016 17:02, Richard Gaskin wrote:
>> Mark Talluto wrote:
>>> The first thing to check is permission access to that folder.
>>> Have your program do a sample write to that location and get
>>> the results.
>> That's too smart. For me that's the second thing I do, but when I do in
>> addition to checking the result I also include a call to the sysError function
>> so I can learn what the OS might be telling me.
>> The first thing I do is assume I mistyped the path, so I'll run something like
>> this in the Message Box to double-check it:
>> answer file "Select your file:"; put it
More information about the use-livecode