MSDOS

Init for CMD

^[ is an ESC char. Can do by  ALT+027


@echo off

REM cls

REM c:\windows\system32\reg.exe add HKCU\Console /v CursorSize /d 100 /F

ECHO ^[[96m,---.                        

ECHO ^[[96m^|    ,---.,---..   .,---.,---.

ECHO ^[[96m^|    ^|    ^|   ^|^|   ^|`---.^|---'

ECHO ^[[96m`---'`    `---'`---'`---'`---'

REM ECHO WELCOME

set PROMPT=^[[36m$d $t$H$H$H$H$H$H - %computername% - %username%^[[92m$_$p$g^[[0m

title %username%

ECHO.

doskey ..=cd..

doskey c=cls

doskey psexec="\\servershare\PsTools\psexec.exe " $* /accepteula

doskey psgetsid="\\servershare\PsTools\psgetsid.exe" $* /accepteula

doskey sid="\\servershare\PsTools\psgetsid.exe" $* /accepteula

doskey psinfo="\\servershare\PsTools\Psinfo.exe" $* /accepteula

doskey pskill="\\servershare\PsTools\pskill.exe" $* /accepteula

doskey psloggedon="\\servershare\PsTools\psloggedon.exe" $* /accepteula

doskey n="c:\Program Files (x86)\Notepad++\notepad++.exe" $*

REM doskey df=C:\Windows\System32\cscript.exe "\\servershare\CrouseScripts\tools\disksize.vbs" $*

doskey df="\\servershare\CrouseScripts\tools\conDiskSpace.exe" $*

doskey bye=C:\Windows\System32\shutdown.exe /l

REM doskey reboot=\\servershare\PsTools\psexec.exe /accepteula \\$1 shutdown /r /f /t 0 /c "Rebooted by Doskey"

REM doskey shutdown=\\servershare\PsTools\psexec.exe /accepteula \\$1 shutdown /s /f /t 0 /c "Shutdown by Doskey"

doskey windirstat="\\servershare\WinDirStat\windirstat.exe"

doskey fax=\\servershare\CrouseScripts\rfax_state_query.cmd

doskey enum="c:\windows\syswow64\cscript.exe" //nologo "\\servershare\CrouseScripts\enumGroupsForAD_Recursive.vbs" $*

doskey encounter="c:\windows\syswow64\cscript.exe" //nologo "cscript \\servershare\EncounterExtractor\EncounterExtractor.vbs " $*

doskey lastreboot=WEVTUtil query-events System /count:1 /rd:true /format:text /q:"Event[System[(EventID=1074)]]" /r:$*

doskey uptime=\\servershare\CrouseScripts\uptime.exe $*

doskey serverstats="\\servershare\CrouseScripts\serverstats.exe" $*

doskey rdsmonitor=\\servershare\CrouseScripts\rdsmonitor.exe $*

doskey clear=\\servershare\CrouseScripts\conRunRemoteProcess.exe $*

doskey errorcodes=\\servershare\CrouseScripts\errorcodes.exe $*

doskey SQLVersions=\\servershare\CrouseScripts\SQLVersions.exe $*

doskey weather=\\servershare\CrouseScripts\weather.exe $*

doskey ram=tasklist /s $*^|sort /+64n /rev^|FindStr /V "Image Name"^|FindStr /V "====="^|find /N " "^|Findstr /r \[[0-9]\]

doskey ls=dir $*

doskey qs=query session /server:$*

doskey qu=query user /server:$*