Script for Mcafee groupshield version 6 DAT removal

I found just a nice script how to schedule a script to remove Mcafee DAT files for groupshield.

@echo off
rem ********************************************************
rem *
rem * REMOVE OLD DAT FILES SCRIPT
rem *
rem * Designed for: McAfee Groupshield for Exchange 6.x
rem * Designed by:
rem * Website:
rem *
rem ********************************************************

rem ————————————————–
rem — SET The directory Groupshield is installed in:
rem ————————————————–

set INSTALL_DIR = “%ProgramFiles%\Network Associates\McAfee Groupshield”

rem ———————————————-
rem — SET The number of old dat files to retain:
rem ———————————————-

set NUM_DATS = 1

rem ———————————————-
rem — DO NOT CHANGE ANYTHING BELOW THIS LINE!
rem ———————————————-

if not exist %INSTALL_DIR%\Bin\PurgeOldDefinitions.exe goto GSE_NOT_EXIST

%INSTALL_DIR%\Bin\PurgeOldDefinitions.exe %NUM_DATS%

goto END

:GSE_NOT_EXIST
echo “Groupshield is not or not correctly installed”
:END
exit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s