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
One option is to find one of the various utilities that can change the window state of the currently running console window and make a call to it from within the batch script.
You can run it as the first thing in your batch script. Here are two such tools:
min.exe http://www.paulsadowski.com/wsh/cmdprogs.htm
cmdow http://www.commandline.co.uk/cmdow/index.html