# Meine cmdrc.bat Um ähnlich wie bei Linux ([[:linux:bashrc]]) die Shell mit eigene Aliasen zu erweitern, gibt es unter Windows ähnliche Möglichkeiten, wenn auch etwas eingeschränkt. Schritt 1: mit Notepad eine entsprechende Datei erstellen notepad %USERPROFILE%\cmdrc.bat Schritt 2: diese Datei mit Lebel füllen @echo off doskey h=cd /d %USERPROFILE% $T cls doskey c=cls doskey cd=cd /d $1 echo. echo =============================================================================== echo Willkommen Martin echo =============================================================================== Schritt 3: das Script als AutoRun für die Windows Konsole eintragen reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d "%"USERPROFILE"%\cmdrc.bat" /f Info: der AutoRun kann mit folgendem Befehl wieder entfernt werden reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun == Quellen == * [[https://gist.github.com/vladikoff/38307908088d58af206b]] * [[https://stackoverflow.com/questions/17404165/how-to-run-a-command-on-command-prompt-startup-in-windows]] * [[https://ss64.com/nt/syntax-keyboard.html]]