(file) Return to getbinspvt.cmd CVS log (file) (dir) Up to [OMI] / omi / ut / win

File: [OMI] / omi / ut / win / getbinspvt.cmd (download)
Revision: 1.1, Mon Apr 20 17:20:37 2015 UTC (9 years, 1 month ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

@ECHO OFF

REM usage check - make sure user alias specified
if "%1"=="" (set INFO=echo && set SEXIT=1) else (set INFO=rem && set SEXIT=0)

%INFO% Usage: getbins binaries_source
%INFO%            binaries_source is the source to copy bins from, for example: \\tsclient\d\buddy\fbl_srv_msp.binaries.x86fre

if "%SEXIT%"=="1" goto :EXIT

if not "%2"=="" goto :EXIT

IF EXIST %SYSTEMROOT%\system32\taskkill.exe (    
    %SYSTEMROOT%\system32\taskkill /F /im omiserver.exe
) ELSE (
    kill omiserver.exe
)
rem xcopy binaries from scratch to local directories
echo Copying WinOMI bins ...
xcopy /s/e/q/r/y/D %1\WinOMI .\WinOMI\
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /s/e/q/r/y/D %1\Symbols.pri .\Symbols.pri\
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /y/q/D %1\nitsdll.dll .
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /y/q/D %1\nitsinj.dll .
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /y/q/D %1\nits.exe .
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /y/q/D %1\nitssample.dll .
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
xcopy /y/q/D %1\nitssampleproduct.dll .
if not %errorlevel% == 0 (echo "ERROR: Bin file copy failed." && goto :EXIT)
echo ... test bins copied.

:EXIT 

ViewCVS 0.9.2