Skip to content

Instantly share code, notes, and snippets.

@yovchev
Last active July 19, 2019 10:05
Show Gist options
  • Save yovchev/a6209702f358d7a6521ac70ef7eefc9a to your computer and use it in GitHub Desktop.
Save yovchev/a6209702f358d7a6521ac70ef7eefc9a to your computer and use it in GitHub Desktop.
:: Open up regedit.exe and add an entry to the batch file to make the doskey commands permanent for each cmd session.
:: HKEY_CURRENT_USER\Software\Microsoft\Command Processor
:: Add a new String Value called AutoRun and set the absolute path in the value of C:\Windows\bin\macros.doskey
:: Doskey Documentation
:: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490894(v=technet.10)
:: reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /d "doskey /macrofile=\"C:\Windows\bin\macros.doskey\"" /f
:: reg query "HKCU\Software\Microsoft\Command Processor" /v Autorun
ip=ipconfig $*
hm=cd /d C:/Homestead $t vagrant $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment