I want to write a script that opens a cmd, makes cd to some directory, and writes down this directory in this cmd.
So, I tried the following:
start cmd /k cd c:\ && echo %cd%
I was expecting to get "c:\" written in the new cmd that just opened, but it doesn't happen. Instead, echo is done in the caller cmd rather than in the callee.
What should I do?
BTW, I thought maybe parentheses could help, but they don't...
Thanks a lot :)