How to Run a Windows Batch Script without a DOS shell window

Just put the below text in a file named whatever with extension “.vbs”, replace “test.bat” with the path of the batch script you want to run, save, then double-click the .vbs file and voila! Faceless batch script execution.
' This script runs a batch file in the background.
' From http://www.pcreview.co.uk/forums/thread-364530.php
'
Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("test.bat", 0, True)
Set WshShell = Nothing


Comments

2 responses to “How to Run a Windows Batch Script without a DOS shell window”

  1. neil Avatar

    i always wanted to do that

  2. Krishen Avatar
    Krishen

    😛

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.