add diag helper scripts and adds to the path (#1918)

These scripts are to help us help our users by getting a relative picture of their environment that they can submit with an incident.
This commit is contained in:
Dax T Games
2018-11-02 09:00:41 -04:00
committed by Benjamin Staneck
parent c5a6afbf5b
commit 3a11d45552
8 changed files with 159 additions and 3 deletions

9
vendor/init.bat vendored
View File

@ -1,5 +1,7 @@
@echo off
set cmder_init_start=%time%
:: Init Script for cmd.exe
:: Created as part of cmder project
@ -38,6 +40,8 @@ call "%cmder_root%\vendor\lib\lib_profile"
:var_loop
if "%~1" == "" (
goto :start
) else if /i "%1"=="/t" (
set time_init=1
) else if /i "%1"=="/v" (
set verbose_output=1
) else if /i "%1"=="/d" (
@ -386,4 +390,9 @@ if "%CMDER_ALIASES%" == "1" if exist "%CMDER_ROOT%\bin\alias.bat" if exist "%CMD
set initialConfig=
set CMDER_CONFIGURED=1
set cmder_init_end=%time%
if %time_init% gtr 0 (
%cmder_root%\vendor\bin\timer.cmd %cmder_init_start% %cmder_init_end%
)
exit /b