REM =====================Check for and install BGInfo================
IF %computername% == LCH-CTX GOTO BGEND ELSE
IF %computername% == LCH-CTX2 GOTO BGEND ELSE
IF %computername% == LCH-CTX3 GOTO BGEND ELSE
IF EXIST "c:\bginfo\Bginfo.exe" GOTO BGCOPY2 ELSE GOTO BGCOPY
:BGCOPY
MD c:\bginfo
COPY "\\serverfile\itdept\utilities\bginfo\bginfo.exe" "C:\bginfo"
COPY "\\serverfile\itdept\utilities\bginfo\bgsettings.bgi" "C:\bginfo"
COPY "\\serverfile\itdept\utilities\bginfo\*.ver" "C:\bginfo"
GOTO BGCOPY2
:BGCOPY2
IF EXIST "c:\bginfo\120406-01.ver" GOTO BGCOPY3 ELSE
COPY "\\serverfile\itdept\utilities\bginfo\bgsettings.bgi" "C:\bginfo"
COPY "\\serverfile\itdept\utilities\bginfo\*.ver" "C:\bginfo"
GOTO BGCOPY3
:BGCOPY3
IF EXIST "c:\documents and settings\%username%\Start Menu\Programs\Startup\bgshortcut.lnk" GOTO BGEND ELSE
COPY "\\serverfile\itdept\utilities\bginfo\bgshortcut.lnk" "C:\Documents and Settings\%username%\Start Menu\Programs\Startup"
C:\bginfo\bginfo "C:\bginfo\bgsettings.bgi" /TIMER:00
:BGEND
REM =====================\END\========================================