检测VMware虚拟机及更新Hal文件的脚本示例

来源:互联网 发布:mac照片流在哪里 编辑:程序博客网 时间:2024/05/22 06:39

检测VMware虚拟机及更新Hal文件的脚本示例

REM Driver and Hal Configuration
REM Let's see which computer model you are using
echo The Model Number is %#!computer@prod_name%
If "%#*"SELECT UPPER(REPLACE(prod_name, ' ', '_')) FROM computer WHERE computer_id=%ID%"%"=="VMWARE_VIRTUAL_PLATFORM" goto VMWARE

REM I wasn't able to find your computer model, bye
goto Exit
:VMWARE
REM I will copy Drivers and HAL.dll down to this VMWARE_VIRTUAL_PLATFORM now
FIRM copy G:/Tools/HAL/VMWARE/HAL.DLL prod:windows/system32
:Exit
exit

原创粉丝点击