(net use) What is better- UNC path or map drive?

275 Views Asked by At

I am writing a java application which iterates over all the files in a network share and searches the files for some keywords. I am aware I can use the smbj library, but I want to use native windows/linux mounting.

I am using the net use command on windows and mount -t command on linux.

Is there any difference in mapping the drive to a drive letter?

(So that I can avoid the code to wait if no drive letter is available)

Obviously, I don't need the drive letter for the user, I am unmounting the drive at the end of my code.

Does mapping the drive make further calls to the drive faster? (X:/Folder vs \Share\Folder)

0

There are 0 best solutions below