Windows conda execute commands on activating environment

How can I run some extra commands upon activating a conda environment?

Suppose I have this workflow:

conda activate sandbox
cd ~Desktopcodesandbox
code .

Is there any way to execute all above steps in windows terminal and make it actually stay in the directory?

Source: Windows Questions

LEAVE A COMMENT