@echooffrem虚拟机安装目录set"vmPath=D:\Program Files (x86)\VMware\VMware Workstation"rem虚拟机vmx文件地址set"vmxPath=D:\Virtual Machines\Windows Server 2019\Windows Server 2019.vmx"cd/d"%vmPath%"vmrun.exelist|findstr/I"%vmxPath%">nul&&echo虚拟机已启动||(echo正在启动虚拟机%vmxPath%vmrun.exe-Twsstart"%vmxPath%"nogui&&echo虚拟机成功启动||echo虚拟机启动失败)pause