cdin'g在批处理文件中后如何返回当前工作目录?

Chr*_*ris 2 batch-file

我有一个批处理文件,我想做以下...

cd C:\some\directory
some_command.cmd
# return to the directory I started in here
python some_script.py
Run Code Online (Sandbox Code Playgroud)

正如您在注释行中看到的,我需要一些方法来返回我开始的目录.我该怎么做?

Mar*_*vez 7

您可以尝试pushd和popd命令,请参阅http://en.wikipedia.org/wiki/Pushd_and_popd