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 ÄÄ¿ ÚÄÄÄÄÄÄÄÄ Locked In Use: 1
|
||
TTS hld detach ÄÄ¿³ ³ÚÄÄÄÄÄÄÄ Open Sharable Opened: 1
|
||
File detached ÄÄ¿³³ ³³ÚÄÄÄÄÄÄ Logged Open read: 1
|
||
Deny Write ÄÄ¿³³³ ³³³ÚÄÄÄÄÄ Open Normal Open write: 1
|
||
Deny Read ÄÄ¿³³³³ ³³³³ Deny read: 1
|
||
Open Write ÄÄ¿³³³³³ ³³³³ ÚÄÄ TTS holding Lock Deny write: 1
|
||
Open Read ÄÄ¿³³³³³³ ³³³³ ³ÚÄ TTS Flag Set Locked: 0
|
||
³³³³³³³ ³³³³ ³³
|
||
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
|
||
|
||
|
||
|
||
|