PsFile

PsTools

PsFile

The "net file" command shows you a list of the files that other computers have opened on the system upon which you execute the command, however it truncates long path names and doesn't let you see that information for remote systems. PsFile is a command-line utility that shows a list of files on a system that are opened remotely, and it also allows you to close opened files either by name or by a file identifier.

Installation
 

Copy PsFile onto your executable path and type "psfile".

Usage

 

The default behavior of PsFile is to list the files on the local system that are open by remote systems. Typing a command followed by "-?" displays information on the syntax for the command.

usage: psfile [\\RemoteComputer [-u Username [-p Password]]] [[Id | path] [-c]]

 

-u

Specifies optional user name for login to remote computer.

 

-p

Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.

 

Id

Identifier (as assigned by PsFile) of the file for which to display information or to close.

 

Path

Full or partial path of files to match for information display or close.

 

-c

Closes the files identifed by ID or path.