Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem This file is supposed to be located at %USERPROFILE%
- rem search for ConsoleZ in the list of tasks, and extract its PID
- for /f "tokens=2" %%i in ('tasklist /fi "imagename eq Console.exe" ^| findstr "Console"') do set "PID=%%i"
- rem list all Parent PIDs, and locate the ConsoleZ PID of them. Count total "sons" of ConsoleZ
- for /f "tokens=1" %%i in ('wmic process get parentprocessid ^| findstr %pid%^| wc -l ') do set subs=%%i
- rem If there's only one son to ConsoleZ, this is the first run of ConsoleZ
- if %subs%==1 (
- rem echo first time!
- wscript %USERPROFILE%\split.vbs
- REM sleep 1
- REM wscript %USERPROFILE%\left.vbs
- ) else (
- rem echo not first time!
- )
- set PROMPT_COLOR_RED=$E[31;1m
- set PROMPT_COLOR_GREEN=$E[32;1m
- set PROMPT_COLOR_YELLOW=$E[33;1m
- set PROMPT_COLOR_BLUE=$E[34;1m
- set PROMPT_COLOR_PINK=$E[35;1m
- set PROMPT_COLOR_TEAL=$E[36;1m
- set PROMPT_COLOR=%PROMPT_COLOR_RED%
- set PROMPT_MAIN_COLOR=%PROMPT_COLOR_TEAL%
- set PROMPT_MAIN_MID=$P$E[0m
- set PROMPT_MAIN_SUFFIX=$G$S
- set PROMPT_MAIN=%PROMPT_MAIN_COLOR%%PROMPT_MAIN_MID%%PROMPT_MAIN_SUFFIX%
- doskey cd=cd $* ^& %USERPROFILE%\gitprompt_check
- doskey git=git $* ^& %USERPROFILE%\gitprompt_check
- REM cd %USERPROFILE%
- call %USERPROFILE%\gitprompt_check
- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars64.bat" amd64 > nul
- REM cd c:\nitzhaki\gtpin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement