Hi. Last night I finished my own code that does this and after a few stupid bugs I had to correct, it worked :-o :-D I tried to cover all possibilities, inlcluding the case where no device is given, in wich case the application will just try to lock the given file path in the current directory or look in the path. Awesome, now to make it perfect,only one thing didn't work. The case where the path (as issued by the Path dos command) includes a multiassign. It did work but only when the file being searched was the only or the first one in the assign list. I'm thinking about transforming the part of my routine that looks for multiassigns into a subroutine and then call it from the part that looks in the path, for every path entry. But... the pathnode structure is internal and not documented. If a given lock in a pathnode structure corresponds to an assign, is that a lock to the structure at the head of the multiassign (the one that has the multiassign's name) or the first lock in the multiassign list..? I'm not at home otherwise I'd have already tried it, but still I'd like to hear you guys opinion on this. The OS should have a routine that does all this like mine , er ok, ours...:-) I'll post it here later.
...
:pint: