PsFile – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Show files opened remotely, or close an open file (kill file locks)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Syntax psfile [\\Computer [-u User [-p Passwd]]] [[Id | path] [-c]] Options: computer The remote computer on which to list files. Default = local system -p passwd Specify a password for user (optional). Passed as clear text. If omitted, you will be prompted to enter a hidden password. -u user Specify a username for login to remote computer(optional). Id Identifier (as assigned by PsFile) of the file for which to display info or to close. Path Full or partial path of files to match for information display or close. -c Close the files identifed by ID or path. -accepteula Suppress the display of the license dialog. |
Unlike the NET FILE command, PsFile does not truncate long filenames.
When launched for the first time, PsFile will create the regkey
HKCU\Software\Sysinternals\PsFile\EulaAccepted=0x01
1 2 3 4 5 |
Examples: List all the files on \\workstationf4t that have been opened remotely: psfile \\workstationf4t |