标签:style blog color 使用 文件 io art re
1、用SystemUtil.Run
1 SystemUtil.Run "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight3a.exe"
2、用InvokeApplication
1 InvokeApplication "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight3a.exe"
3、用相对路径
1 SystemUtil.Run environment.Value("ProductDir")&"\samples\flight\app\flight3a.exe" ‘使用环境变量
4、用WSH对象
1 Set myobj =Createobject("Wscript.shell") 2 myobj.exec "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight3a.exe" 3 Set myobj=nothing
5、用批处理文件
1 Set myobj =Createobject("Wscript.shell") 2 myobj.Run "D:\yzhbat.bat" 3 Set myobj=nothing
批处理文件yzhbat.bat内容:
1 start "" "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight3a.exe"
标签:style blog color 使用 文件 io art re
原文地址:http://www.cnblogs.com/yezhaohui/p/3867945.html