CODE: [Copy to clipboard]@echo off set root=%window% if not defined root (echo 没定义) else (echo 已经定义) pause