Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vb script for a task
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Code:
Set oWshShell = CreateObject("wscript.Shell")
sCmd = "nslookup .." 'put your command here

Set oExec = oWshShell.Exec(sCmd)
sStdout = oExec.StdOut.ReadAll
sStdErr = oExec.StdErr.ReadAll

MsgBox "stdout: " & sStdout &  " stderr: " & sStderr
let me know if this helps

Reply


Messages In This Thread
Vb script for a task - by siri - 06-16-2010, 06:59 PM
RE: Vb script for a task - by Saket - 06-16-2010, 07:44 PM
RE: Vb script for a task - by siri - 06-22-2010, 07:12 PM
RE: Vb script for a task - by Saket - 06-23-2010, 10:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)