@echo off set /p folder= Enter Name of Folder (Group-Location-Device-Date): set /p ask= Do you want to include the SDF? (y/n) MKDIR "%userprofile%\documents\%folder%" cd C:\windows\system32 wevtutil epl Brink "%userprofile%\documents\%folder%\Brink-%date:~-4,4%%date:~-7,2%%date:~-10,2%.evtx" wevtutil epl Application "%userprofile%\documents\%folder%\Application-%date:~-4,4%%date:~-7,2%%date:~-10,2%.evtx" wevtutil epl System "%userprofile%\documents\%folder%\System-%date:~-4,4%%date:~-7,2%%date:~-10,2%.evtx" If /I %ask%==y (COPY C:\Brink\POS\Register.sdf "%userprofile%\documents\%folder%\Register-%date:~-4,4%%date:~-7,2%%date:~-10,2%.sdf") If /I %ask%==yes (COPY C:\Brink\POS\Register.sdf "%userprofile%\documents\%folder%\Register-%date:~-4,4%%date:~-7,2%%date:~-10,2%.sdf") else goto end for /f "tokens=4-7 delims=[.] " %%i in ('ver') do (if %%i==Version (set version=%%j.%%k) else (set version=%%i.%%j)) if "%version%" == "6.0" echo "Untested on this version of windows" goto end if "%version%" == "5.2" echo "Untested on this version of windows" goto end if "%version%" == "5.1" echo "Untested on this version of windows" goto end :end explorer "%UserProfile%\Documents\%folder%"