set gamePath=E:\game
echo 游戏路径是:"%gamePath%"
if exist "%gamePath%" (
echo "已经存在文件夹"
) else (
echo "文件夹不存在"
)
批处理判断文件夹是否存在
最新推荐文章于 2024-04-19 13:52:14 发布
set gamePath=E:\game
echo 游戏路径是:"%gamePath%"
if exist "%gamePath%" (
echo "已经存在文件夹"
) else (
echo "文件夹不存在"
)