Make file
cmd-alias.bat
in the user pathC:\Users\Dell
with content like below. You also can make this file in other path.
doskey sayhello=echo Hello $*
doskey cattxt=type xxxxxxxxxxxx.txt $*Win+R
>regedit
>HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor
make a new keyAutoRun
with valueC:\Users\Dell\cmd-alias.bat
then save and exit.- here you may need to reboot your computer.
Then you can run the command sayhello
in cmd.