本帖最后由 pcl_test 于 2015-12-3 23:14 编辑
bat+vbs获取cscript 宿主返回的脚本错误信息- '/&cls&cscript -nologo -e:vbscript "%~fs0">err.log 2>&1&pause&exit
- 'On Error Resume Next
- Dim a(0)
- a(1)=1
- If Err.Number <> 0 Then
- WSH.echo Err.Number&" "&Err.Description&" "&Err.Source
- Err.Clear
- End If
复制代码
|