So I've set up a file with some aliases for commands that I commonly use. I added it to the registry like in this answer.
I want to use this alias like so:
>cmd /k newalias 'newalias' is not recognized as an internal or external command, operable program or batch file. So this alias cannot be used. If I type >cmd /k newalias again, now it works, so the problem seems to be that the command is being run before the doskey commands in the alias file are executed.
Is there any way to wait until after these aliases are created before running the command?
AddConsoleAlias. Aliases are implemented in the console (conhost.exe). They transform the input buffer when an alias matches at the beginning of a line of input. The current set of aliases depends on the foreground process name. It has nothing to do with cmd.exe, except if you have aliases defined for "cmd.exe" and cmd is the current foreground process in the console./macrofileoption.