Don't miss this great script if you're using tools from sysinternals!
Source : http://sysadmingeek.com/articles/batch-script-to-auto-update-sysinternals-tools/
@ECHO OFF TITLE Sysinternals Updater ECHO Sysintenals Updater ECHO Written by: Jason Faulkner ECHO SysadminGeek.com ECHO. ECHO. SETLOCAL ENABLEDELAYEDEXPANSION SET SysInternalsTools="%Temp%\SysInternalsTools.tmp.txt" SET CurrentTasks="%Temp%\CurrentTasks.tmp.txt" SET StartWhenFinished="%Temp%\StartWhenFinished.tmp.txt" ECHO Detected directory: %~dp0 %~d0 CD %~p0 ECHO. ECHO. ECHO Downloading current tool list... SET LiveShare=\\live.sysinternals.com\tools START /MIN %LiveShare% DIR %LiveShare% /B > %SysInternalsTools% TASKLIST > %CurrentTasks% ECHO ;Terminated tools > %StartWhenFinished% ECHO. ECHO Updating installed SysInternals tools FOR /F %%A IN ('DIR /B') DO ( FOR /F "usebackq" %%B IN (%SysInternalsTools%) DO ( IF /I [%%A]==[%%B] ( ECHO Updating %%A FOR /F "usebackq" %%C IN (%CurrentTasks%) DO ( IF /I [%%A]==[%%C] ( ECHO %%C is currently running, killing process - queue restart ECHO %%C >> %StartWhenFinished% TASKKILL /IM %%A /T /F ) ) XCOPY %LiveShare%\%%B %%A /Y ECHO. ) ) ) ECHO. ECHO Resuming killed tasks FOR /F "usebackq skip=1" %%A IN (%StartWhenFinished%) DO ( ECHO Starting %%A START "Sysinternals Tool" "%%A" ) IF EXIST %SysInternalsTools% DEL %SysInternalsTools% IF EXIST %CurrentTasks% DEL %CurrentTasks% IF EXIST %StartWhenFinished% DEL %StartWhenFinished% ENDLOCAL ECHO. PAUSE
Just in case If you don't like to "type" or "copy and paste".
Screenshot
'Technology > S/W' 카테고리의 다른 글
EnCase 7 Preview (0) | 2011.05.03 |
---|---|
EnCase Windows Initialize Case for Win7 (0) | 2011.03.29 |
EnCase 6.17 출시 (0) | 2010.07.29 |
EnCase 의 HWP2007 지원? (4) | 2009.10.26 |
Hiren's BootCD 10.0 (0) | 2009.09.01 |