批处理中有这样一句:if "%os%"=="windows NT" ((cd /d %~dp0)&(goto next))

来源:百度知道 编辑:UC知道 时间:2024/05/05 12:58:33
批处理中有这样一句:if "%os%"=="windows NT" ((cd /d %~dp0)&(goto next))
其中的:cd /d %~dp0是什么意思?望高手解答。

if "%os%"=="windows NT" ((cd /d %~dp0)&(goto next))

其中,
if "%os%" =(你的系统类型)
cd /d %~dp0

cd是转到这个目录
%~dp0 “d”为Drive的缩写,即为驱动器,磁盘、“p”为Path缩写,即为路径,目录