add cmder_shell method

This commit is contained in:
Dax T. Games
2018-09-02 17:32:20 -05:00
parent 352a16f84d
commit 823e6fee6e
2 changed files with 26 additions and 5 deletions

View File

@ -43,3 +43,24 @@ exit /b
pause
exit /b
:cmder_shell
:::===============================================================================
:::show_subs - shows all sub routines in a .bat/.cmd file with documentation
:::.
:::include:
:::.
::: call "lib_base.cmd"
:::.
:::usage:
:::.
::: %lib_base% is_cmd
:::.
:::options:
:::.
::: file <in> full path to file containing lib_routines to display
:::.
:::-------------------------------------------------------------------------------
echo %comspec% | find /i "\cmd.exe" > nul && set "CMDER_SHELL=cmd.exe"
echo %comspec% | find /i "\tcc.exe" > nul && set "CMDER_SHELL=tcc.exe"
exit /b