バットバッチ-例

現在のファイルが置かれているディレクトリを取得します:%~ dp0

@echo off

echo %~dp0

pause

おすすめ

転載: blog.csdn.net/qq_40323256/article/details/123987192