VBScript: Run a DOS command Posted on March 20, 2008May 15, 2021 by bendevriese CommandLine = “dir c: |more” Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run “CMD /C ” & CommandLine