标签:io os ar for sp art on bs as
1。DOS自动创建VM虚拟机,加for可以批量创建
@echo off setlocal enabledelayedexpansion :START cd /d K:\copyset /p file= 请输入虚拟机的名称: md F:\"%file%" copy model F:\"%file%" cd /d F:\"%file%"ren *-0.vmdk "%file%".vmdk.swp ren *.vmdk "%file%".vmdk ren *.swp "%file%"-0.vmdk ren *.nvram "%file%".nvram ren *.vmsd "%file%".vmsd ren *.vmxf "%file%".vmxf ren *.vmx t.vmx for /f "tokens=*" %%i in (.\t.vmx) do ( set var=%%i set "var=!var:89.254=%file%!" echo !var! >> "%file%".vmx ) del t.vmx goto START
标签:io os ar for sp art on bs as
原文地址:http://my.oschina.net/jk409/blog/331898