如何在bat脚本中切换到自身目录

在脚本开头添加cd /d %~dp0

@echo off
cd /d %~dp0
posted @ 2025-07-08 09:47  决云  阅读(8)  评论(0)    收藏  举报