58 lines
1.9 KiB
Plaintext
58 lines
1.9 KiB
Plaintext
|
|
|||
|
WhoHas.EXE v1.1
|
|||
|
|
|||
|
Purpose: Find users who currently access a given file on a file server
|
|||
|
NetWare v2.1x, v2.2x, and v3.x
|
|||
|
|
|||
|
Syntax: WHOHAS path/file [/cont] [/wait]
|
|||
|
|
|||
|
The option '/Continous' will permanently display the
|
|||
|
connections that have the file open until a key is pressed.
|
|||
|
|
|||
|
The option '/Wait' will do the same as '/Cont' but will
|
|||
|
stop the program as soon as no connection uses the file.
|
|||
|
This is useful for batch files where operations have to
|
|||
|
wait until a file is released by other users.
|
|||
|
|
|||
|
Features: - WHOHAS runs a self-check for virus infections;
|
|||
|
- output can be redirected with std DOS commands
|
|||
|
- WHOHAS returns DOS error levels:
|
|||
|
either the number of connections using the file, or
|
|||
|
a NetWare Error:
|
|||
|
$98 (152): Unknown volume
|
|||
|
$9C (156): Invalid Path/File
|
|||
|
$C6 (198): No Console Rights
|
|||
|
|
|||
|
|
|||
|
Copyright: Public Domain written by Wolfgang Schreiber
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Example:
|
|||
|
|
|||
|
F:\>whohas sys:system\net$prop.sys
|
|||
|
|
|||
|
|
|||
|
TTS hld open <20>Ŀ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Locked In Use: 1
|
|||
|
TTS hld detach <20>Ŀ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Open Sharable Opened: 1
|
|||
|
File detached <20>Ŀ<EFBFBD><C4BF> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Logged Open read: 1
|
|||
|
Deny Write <20>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Open Normal Open write: 1
|
|||
|
Deny Read <20>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Deny read: 1
|
|||
|
Open Write <20>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> TTS holding Lock Deny write: 1
|
|||
|
Open Read <20>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> TTS Flag Set Locked: 0
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
|||
|
Connection: 0 xxxx--- ---x -x (Server)
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Version history:
|
|||
|
1.1: - Returns number of connections using the file as DOS ErrorLevel
|
|||
|
- New Options: '/Cont' and '/Wait'
|
|||
|
- Output can be redirected (except when options are specified)
|
|||
|
|
|||
|
|
|||
|
Wolfgang Schreiber
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|