以下のように、Vbscriptを組みましたが
コマンドの実行結果(count)の取得方法はどうすればいいでしょうか?
dim shell
dim bcpcmd
'SQLを編集する
bcpcmd = "select count(*) from sys.fn_trace_gettable('"
& READAREA & "',default) where LOGINNAME = " & '***' and STARTTIME >=
" & "'" KAKOTIME "'" & " and ENDTIME <= " & "'" NOWTIME "'"
'コマンドを発行
shell.run "cmd /C ""bcp " & bcpcmd & """", 0, True