I have this bat file and I want to minimize the cmd window when I run it:
@echo off cd /d C:\\leads\\ssh call C:\\Ruby192\\bin\\setrbvars.bat ruby C:\\leads
You could try running a script as follows
var WindowStyle_Hidden = 0 var objShell = WScript.CreateObject("WScript.Shell") var result = objShell.Run("cmd.exe /c setrbvars.bat", WindowStyle_Hidden)
save the file as filename.js