Maybe because I didn’t say what my final task is.

The task is: find a specific file on the specific computer in the network.
It is given: name of the file (“master.mdf”) and name of the computer (“SQLServer”).
Conditions: computer may belong to other domain.

It looks simple, but it’s not because of mentioned condition.
So, to start search file-search procedure requires start folder. And start folder cannot be only a computer name "\\SQLServer" but should also contain a share name "\\SQLServer\Share1". But I don’t know name of the share and I don’t know name of the domain! I’ve tried to use vbLib, but its functions do not work with domain other than default system domain.

So, is there any way to accomplish my task or not?
Plese, help.

PS: what I would want to do is to somehow loop through ALL network components (domains, computers, shares) and compare all computer names with given one. And then I'd like to find shares ot that computer to run search procedure on each one.