如何让Windows开机后自动运行你的VMware虚拟机

网上有人说用如下批处理可行:
cd C:\Program Files\...\vmplayer\
vmplayer.exe "d:\...\OS.vmx"

很明显第一句语法有问题。改过之后也不一定可行,因为可能VMplayer会报错说:
Error while opening the virtual machine: The configuration file for this virtual machine cannot be found. It might be missing from the virtual machine directory, or the path specified to access this virtual machine might be incorrect.

我试过一个可行的方法是:快捷键+自动启动。
1. 在安装目录上找到那个vmplayer.exe, 右击创建快捷键。可以把句子改成你想要的,比如“VMgforge";
2. 右击那个快捷键,选最下面的”Properties“, 在Shortcut table里的Target框的最后(就是C:\Program...\vmplayer后面)加上空格和”D:\gforge\VMgforge.vmx“. -- 就是把你虚拟机的位置以参数形式告诉这个vmplayer.

 

注释:如果目录中含有空格,可以加上双引号。


3. 再用Windows的自动运行机制开机时自动运行你的快捷键。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值