Pages

Tuesday, December 1, 2009

Net file

  1. go to the machine where the shared folder is hosted
  2. open command prompt
  3. invoke command: Net File
Find certain opened shared-files:
net file | find /I "file-path-or-pattern" [> logfilepathname]

example:
net file | find /I "file_test.xls" > d:\net-file-pattern.log

the example above will list all shared files being used/opened with result pattern "file_test.xls" and write the list to d:\net-file-pattern.log