Skip to content

Instantly share code, notes, and snippets.

@LOuroboros
Created April 22, 2022 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LOuroboros/58bc354b794fd890af850aba7179723d to your computer and use it in GitHub Desktop.
Save LOuroboros/58bc354b794fd890af850aba7179723d to your computer and use it in GitHub Desktop.
Windows CMD Aliases/Shortcuts
@echo off
:: Usage:
:: Make a String key called "AutoRun" in HKEY_CURRENT_USER\Software\Microsoft\Command Processor
:: Point it to this file, and restart CMD if you have it opened.
DOSKEY ls=dir /B
DOSKEY desktop=cd C:\Users\%USERNAME%\Desktop
DOSKEY explore=explorer.exe .
DOSKEY compact=compact /C /F /S /A /EXE:LZX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment