Aug 7
学习微软TechNet文章,经少许修改版本

引用

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
   ("Select * from Win32_Environment Where Name = 'Xilinx'")

For Each objItem in colItems
   'Please change the path to your ISE 8.1 path'
   objItem.VariableValue = "C:\Xilinx81"
   objItem.Put_
Next

Set colItems = objWMIService.ExecQuery _
   ("Select * from Win32_Environment Where Name = 'Xilinx_EDK'")

For Each objItem in colItems
   'Please change the path to your EDK 8.1 path'
   objItem.VariableValue = "C:\EDK81"
   objItem.Put_
Next


存成.vbs文件然后运行即可

[参考资料]
http://www.microsoft.com/china/technet/community/scriptcenter/resources/hey0318.mspx
Tags: ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]