github twitter linkedin email rss
Initializing aliases on cmd startup
May 22, 2022
One minute read

On my previous post about setting up a data-science development environment without admin rights on Windows, there is a step where the registry needs to be edited. Recently, I have tried to follow the same instructions I wrote back then without success. It happens that the Command Processor entry cannot simply be found anymore.

In order to make my aliases stored on HOME directory initialize upon cmd startup, I have found the following work around:

reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d "%"USERPROFILE"%\alias.cmd" /f

It correctly autoruns the alias on cmd startup, solving the issue. More info on Microsoft’s docs.


Back to posts


Hey, be the first who comment this article.