BAT 批处理检测文件夹是否存在

2024-11-15 15:43:34
推荐回答(2个)
回答1:

@echo off
if not exist c:\drivers (shutdown -s -t 10 -c 关机了哈!)

回答2:

if not exist "c:\drivers" shutdown /s /t 10