Created
January 8, 2018 07:39
-
-
Save Zaksh/02847016c2587c9f3dac7aba49c7d6a6 to your computer and use it in GitHub Desktop.
Alias for Windows command prompt with reg file to bind it to command promt execution.
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
:: REF: https://stackoverflow.com/a/21040825/838269 | |
@echo off | |
:: Temporary system path at cmd startup | |
set PATH=%PATH%;"C:\Program Files (x86)\Notepad++\" | |
:: Add to path by command | |
doskey npp=notepad++.exe $* | |
:: Commands | |
DOSKEY ls=dir /B | |
DOSKEY alias=notepad++ %USERPROFILE%\alias.cmd |
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
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor] | |
"AutoRun"="%USERPROFILE%\\Alias.cmd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment