Sunday, November 23, 2008 Register
You are here Articles
   
Articles Minimize

Current Articles | Categories | Search

Using a Batch file to Update NAVNLM and NAVUPDAT
By BillD on Monday, January 27, 1997 :: Last Updated: Sunday, November 25, 2007
758 Views :: 0 Comments :: :: Tips and Tricks, AntiVirus
 

The purpose of this document is to show, how you can automate the updating and distribution of your Norton AntiVirus Virus definitions, on multiple servers using a batch file.

First, download the latest Intelligent Updater from the Symantec Web site (http://www.symantec.com/avcenter/defs.download.html), and place it in the F:\USERS\BILLD\NAV folder, each week.

Note: You will need to change the directory names, to match that of your server.

Next run the following batch file followed by the name of the current/new update. For example:

NAVUP 1025I32 [Enter]

BATCH FILE CODE:

REM REM is a batch file conventions that stands for REMARK. Any statements that have an REM
REM in front of them are ignored by the Operating System.
REM Program Name: NAVUP.BAT.
REM Written By: Bill Dickerson
REM Date Written: 1996.
REM ===================================

F:\USERS\BILLD\NAV\%1 /Q F:\PUBLIC\NAVUPDAT

REM This command of the batch file runs the Intelligent Updater in quiet mode (/q) to update
REM the NAVUPDAT program, which in turn updates each user as they log in.

REM The %1 tells the batch file to use the variable name I typed in at time of starting the batch
REM file as it changes each month. So this line would be interpreted as
REM F:\USERS\BILLD\NAV\1025I32 /Q F:\PUBLIC\NAVUPDAT
REM By placing the F:\PUBLIC\NAVUPDAT after the /Q tells the Intelligent Updater to update
REM the virus definitions in this folder
.

F:

REM This logs on to drive F:

CD\PUBLIC\NAVUPDAT

REM This is command will change directories from the current directory to the PUBLIC\NAVDAT
REM directory. This is the MS-DOS definition of the command CD: Displays the name of or
REM changes the current directory.
REM CD [drive:][path]
REM CD[..] .. Specifies that you want to change to the parent directory.
REM Type CD [drive:] to display the current directory in the specified drive.
REM Type CD without parameters to display the current drive and directory
.

NAV .

REM This command runs Norton AntiVirus on the current directory to let it rebuild the virus
REM definition files.
REM The period is shorthand for the current directory, thus, "NAV ." starts NAV and tells it to
REM scan the current directory only, then exit so the batch file can continue and not to delay the
REM log on process longer then necessary.

J:

REM This logs on to drive J:

F:\USERS\BILLD\NAV\%1 /Q J:\PUBLIC\NAVUPDAT

REM Repeat the process for Drive J:

CD\PUBLIC\NAVUPDAT

NAV .

N:

F:\USERS\BILLD\NAV\%1 /Q N:\PUBLIC\NAVUPDAT

NAV .

F:

CD\USERS\BILLD\NAV

%1 /Q F:\SYSTEM\NAVNET

REM This command runs the weekly update on the NAVNLM, which runs on the file server
REM performing real-time and scheduled scans of NetWare volumes. When you apply the
REM update, NAV disables itself, then re-enables using the new data files.
REM Again, %1 tells the batch file to use the variable name I typed to run the file, /q tells the
REM update to run in quiet mode - "just do it, don't tell me about it".

%1 /Q J:\SYSTEM\NAVNET

%1 /Q N:\SYSTEM\NAVNET

G:

CD\UPGRADE\NAV

REM This is command will change directories from the current directory to the UPGRADE\NAV
REM directory.

DELTREE /Y ??NAV*

REM I keep the current weekly update file on the main file server so NT and Win95 users can
REM grab it and run it on their PCs, or take it home for use. This part deletes the old directory
REM and file.

MD %1

REM This command creates a new directory with the current file name so this file is easy to find,
REM and always current

COPY F:\USERS\BILLD\NAV\%1.EXE G:\UPGRADE\NAV\%1

REM This command copies the Intelligent Updater to the new directory

Webmasters Note: Although NAVUPDAT has become outdated, this technique can be used to update almost anything.

Related Downloads:

Comments
Currently, there are no comments. Be the first to post one!
You must be logged in to post a comment. You can login here
Show your Support! Minimize
Did you find our site, programs and articles useful?
Make a donation to show your support!
Donate Today
Donate
Master CardVisaDiscoverAmerican Express
DNSSTUFF.COM


God Bless America
Privacy StatementTerms Of UseCopyright 1999-2008 by Top Cat Computing

BorderBoxedBlueBoxedGrayBlue Small width layoutMedium width layoutMaximum width layoutMaximum textMedium textSmall textBack Top!