Net use is for shares, see Net filethat doesnt show the open share files. it only show a disconnected network computer in the network
Displays the names of all open shared files on a server and the number of file locks, if any, on each file. This command also closes individual shared files and removes file locks. Used without parameters, net file displays a list of the open files on a server.
Any way you choose you must of course have admin privilegies, that means you must run app as admin. To run app as admin when debugging you must run VS as admin.I tried using openfile to read it but this doesnt seem to work either
'net file id' is supposed to show the full path (scripting - how to get the full path of an open file - Server Fault)it only show the beginning of the path then ..... but i only have 1 file opened.
That is true, although deployment is beside the point of this thread.clickOnce does not support requireAdministrator