TIP: Click on subject to list as thread! ANSI
echo: lan
to: MALCOLM CAMPBELL
from: GEORGE FLIGER
date: 1998-01-13 06:51:00
subject: networking and virus checking

On 12 Jan 98 03:44pm, Malcolm Campbell wrote to All:
 MC> At work we run NOVELL 3.12 on our server, which is primarily
 MC> used as a file and print server. Approx 65 users log on each
 MC> day, most using DOS 6.2x and Windows 3.1x (or Win4WG ver 3.11),
 MC> but others use Win95 or WinNT ver 4.0
 MC> As the user logs in, the login script common to all users runs
 MC> Thunderbyte (for DOS) and scans their local drives for viruses.
 MC> This generally prevents them from sharing an infected file.
 MC> What I would like to do, but don't know how, is to determine at
 MC> login time which OS the client is running, and force a virus
 MC> scan with the appropriate scanner i.e.
 MC> Thunderbyte for DOS and Win 3.1x
 MC> Thunderbyte for Win95
 MC> Thunderbyte for WinNT
 MC> Can anyone tell me, from within the login script, how to
 MC> determine which DOS or Windows the client is running?
 MC> Any help would be gratefully appreciated!
Not having done this with NT I won't make claims to that but it should
be similar.  With Windows95 and DOS, the %OS and %OS_VERSION script
variables are probably what you need to use.
A simple statement in your login script such as:
        IF "%OS" = "MSDOS" AND "%OS_VERSION" = "V6.22" THEN BEGIN
        #SCAN C:
        END
        IF "%OS" = "WIN95" AND "%OS_VERSION" = "V4.00" THEN BEGIN
        #SCAN95 C:
        END
Another way you could do the same is with an EXIT command to run a
batchfile named the same as the user's login name.  As in:
        EXIT "%LOGIN_NAME"
If the user's name was Bill, the EXIT command would read:
        EXIT "BILL"
And would run a batchfile called BILL.BAT (placed in the \PUBLIC
directory or the user's mapped home directory).
In the batchfile place the commands to run the scanning software.  The
only drawback to the batchfile method is if the user logs on at another
workstation.  Then it would only work if that workstation was running
the same OS as his normal system.
The IF, THEN, BEGIN style login script lines are probably your best way
to go.
George
... Every time I lose weight, It finds me again!
--- Via Silver Xpress V4.4P [Reg]
---------------
* Origin: Chipper Clipper * Networking fun! (1:137/2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.