home *** CD-ROM | disk | FTP | other *** search
-
- COMMENT $-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- ISNET.ASM 10/03/90
- by P. L. Olympia
-
- Program to test if the user is on a network, by
- checking if the Novell shell is loaded on the
- workstation. Will return "Y" if the shell is loaded
- whether or not the workstation is currently logged in.
-
- Usage:
- LOAD isnet
- result = SPAC(1)
- CALL isnet WITH result
- IF result = "Y"
- <Novell shell is loaded>
- ELSE
- <Standalone PC>
- ENDIF
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=$
-
- CODESEG SEGMENT PARA 'CODE'
- ASSUME CS:CODESEG
-
- IsNet PROC FAR
- Doit:
- JMP begin
-
- TootIt DB 'IsNet (c) 1990 by P. L. Olympia',13,10,26
-
- Begin:
- PUSH AX ;save registers
- PUSH BX
- PUSH DS
-
- MOV AX,0EA00h ;Load function
- INT 21 ;Call DOS
- MOV AL,00
- CMP AH,0EAh ;Is Shell Loaded?
- JZ SaveIt
- MOV AL,'Y' ;Yup
- Saveit:
- POP DS ;restore registers
- POP BX
- MOV [BX],AL
- POP AX
- RET
-
- IsNet ENDP
- CODESEG ENDS
- END IsNet