This project is read-only.
1

Closed

Ability to double-click mirror.cmd from Windows Explorer

description

Since many of our techs shy away from the DOS prompt and they are the ones running the script for my analysis, I added the ability to double-click the mirror.cmd file and prompt for the required drive letters. This modification still supports passing the drive letters from the DOS prompt.
 
Created a %VERSION% variable, as we've made a few internal modifications. This helps us keep track of which version is running.
Created a %TOOLSDIR% variable, so the path can easily be changed, if necessary.
 
I also added %LOGS% and %TOOLS% variables, and made the required modifications when calling the various .exe's and logging paths. (more as a readability thing, really)
 
SET VERSION=1.2.3
SET TOOLSDIR=\tools\MIRROR
 
if "%1"=="" goto GetTools
SET TOOLS=%1
 
if "%2"=="" goto GetLogs
SET LOGS=%2
 
goto SkipPrompts
 
:GetTools
ECHO.
ECHO ***************************************************************************
ECHO Please enter the drive letter where the tools are located
SET /P TOOLS= (typically a USB stick):
 
:GetLogs
ECHO.
ECHO ***************************************************************************
ECHO Please enter the drive letter where the logs should be stored
SET /P LOGS= (typically the same USB stick):
 
:SkipPrompts
 
REM Adds %TOOLS%\Tools directory to the path for the execution of
REM the programs in the script.
SET PATH=%TOOLS%:%TOOLSDIR%;%PATH%
 
REM Creates evidence collection folders.
mkdir %LOGS%:\Livecap_%COMPUTERNAME%
 
CLS
 
ECHO.
ECHO ***************************************************************************
ECHO MIR-ROR live data capture is ready to begin.
ECHO.
ECHO Version %VERSION%
ECHO.
ECHO There may be slight delay depending on system type.
ECHO.
ECHO.
ECHO Tools path is: %TOOLS%:%TOOLSDIR%
ECHO Log path is : %LOGS%:\Livecap_%COMPUTERNAME%
ECHO.
ECHO ***************************************************************************
ECHO.
 
pause
Closed Mar 22, 2012 at 7:20 AM by RussMcRee
Update included in 2.0 stable release.

comments