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.