有沒有辦法pushd在腳本結束時撤消所有內容。我所擁有的是:
pushd somwhere
rem doing stuff
goto end
:end
popd
goto :EOF
我想要的是:
setlocal
pushd somwhere
rem doing stuff
goto :EOF
但這不起作用,目錄保持“pushd”。pushd我不能說會發生多少的另一個嘗試是:
set CurrentDir=
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/428981.html
