Skip to content

Instantly share code, notes, and snippets.

@gianmaria
Last active August 17, 2025 08:33
Show Gist options
  • Select an option

  • Save gianmaria/9e50d7fbe460cf2dd6ff36377cf1421f to your computer and use it in GitHub Desktop.

Select an option

Save gianmaria/9e50d7fbe460cf2dd6ff36377cf1421f to your computer and use it in GitHub Desktop.
aliases for windows cmd
:: copy the full path of this file (C:\Dev\bin\aliases.bat)
:: in the value Autorun in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\
@echo off
doskey cd.. = cd ..
doskey .. = cd ..
doskey h = cd %USERPROFILE%
doskey proj = cd C:\Workspace\projects
doskey ls = dir $*
doskey cat = type $*
doskey l = dir /b $*
doskey ll = dir /a /b $*
doskey lll = dir /q /a /c /4 $*
doskey c = cls
doskey grep = findstr $*
doskey env = set $*
doskey alias = doskey /MACROS:ALL
doskey e = explorer $*
doskey pwd = cd
REM doskey . = cd %USERPROFILE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment