I have created a permanent doskey using a macro file, but whenever I use a command from the list, the current working directory is printed twice in the top terminal.

This issue seems to be related to the use of $T in the macro file. The bottom terminal in the picture shows that everything works fine when the macro file only contains one doskey alias. What can I do to solve this problem?

Askify Moderator Edited question April 26, 2023