Last active
July 19, 2019 10:05
-
-
Save yovchev/a6209702f358d7a6521ac70ef7eefc9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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