nerds:~ #

11Feb/093

VBScript: Running a Simple Script from the Command Line Without “defining a billion vars”

A frustrated administrator friend just messaged me, asking how he can, in VBScript, "run a simple batch file using a simple command line without defining a billion vars and initting a bunch of bullshit." Apparently, this isn't well documented on the web, so I'm taking a stab at it.

Set WshShell = CreateObject("WScript.Shell")
Call WshShell.Run("c:\windows\system32\netsh.exe netsh interface tcp set global autotuninglevel=disabled", 0, TRUE)
Set WshShell = Nothing

Simple enough? :) More information can be found at DevGuru.

Posted by: Chrissy   Filed under: VBScript Leave a comment
Comments (3) Trackbacks (0)
  1. This post isn’t very clear.

  2. Not sure where to clarify. WOMM!

  3. wow sexy nerd Crissy beutyfull eyes


Leave a comment


No trackbacks yet.