shell.run "PhysX.exe /passive", 1, True '等待PhysX.exe安装完后再运行下一个
Runerr = shell.run "PhysX.exe /passive", 1, True '从PhysX.exe返回的错误代码
Set fso=CreateObject("Scripting.FileSystemObject")
Set WshShell=CreateObject("WScript.Shell")
If (fso.FileExists("PhysX.exe")) Then
WshShell.run "PhysX.exe /passive", 1, True
Else
'下一步做的事情,也可以call语句
WScript.Quit
End If