Skip to main content

PsFile v1.02

By Mark Russinovich

Published: December 4, 2006

 Download PsTools (1.6 MB)

Rate:  

Introduction

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

Just copy PsFile onto your executable path, and type "psfile".

Using PsFile

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]]

-uSpecifies optional user name for login to remote computer.
-pSpecifies password for user name. If this is omitted, you will be prompted to enter the password without it being echoed to the screen.
IdIdentifier (as assigned by PsFile) of the file for which to display information or to close.
PathFull or partial path of files to match for information display or close.
-cCloses the files identifed by ID or path.

 

How it Works

PsFile uses the NET API, which is documented in the Platform SDK.

 

Download

Download PsTools
(1.6 MB)

 

Top of page Top of page

Download


Download

Download PsTools
(1.6 MB)

 

PsTools

PsFile is part of a growing kit of Sysinternals command-line tools that aid in the adminstration of local and remote systems named PsTools.

Runs on:

  • Client: Windows XP and higher.
  • Server: Windows Server 2003 and higher.
Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?