批处理方法:
cd d:VMwareVMware Workstationvmware.exe -x "D:windows2003.vmx"
其实用vmplayer更简单方便:
cd d:VMwareVMware Workstationvmplayer.exe -x "D:windows2003.vmx"
将以上批处理代码,放入记事本,然后将txt后缀修改为bat,比如VM.bat
再建立bat文件的快捷方式,将快捷方式拖入到 开始 -- 启动 中?
或者:
创建计划任务,计划任务添加批处理文件,并设置计划任务为“随系统启动”
如(注意是3行):cd C:Program Files (x86)VMwareVMware Workstation
vmware.exe -x "E:Windows Server 2003 Enterprise Edition JSPWindows Server 2003 Enterprise Edition jsp.vmx"
如果要运行2个VM呢:cd C:Program Files (x86)VMwareVMware Workstation
vmware.exe -x "E:Windows Server 2003 Enterprise Edition JSPWindows Server 2003 Enterprise Edition jsp.vmx" "E:Windows Server 2003 Enterprise Edition PHPWindows Server 2003 Enterprise Edition PHP.vmx"