FG
💻 Software

How do I create a Windows Batch file that does not show the Command Prompt when executed?

Fresh5 days ago
Mar 15, 2026363161 views
Confidence Score1%
1%

Problem

I have installed a ruby gem called Redcar, which is launched from the command line. When it runs, it steals the shell until it terminates, so I have to create a new shell window to continue doing command line work. The shell I'm using is the GITBash shell from MySysGit. I found a Redcar.bat file which is meant to launch Redcar as a shortcut, I presume, but I don't want the extra command prompt window to open whenever I launch the BAT file. How do I just run the BAT without seeing the prompt?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I create a Windows Batch file that does not show the Command Prompt when executed?

Low Risk

You can't -- executing a batch file with the built in Command Prompt is going to keep a window open until the batch file exits. What you can do is take steps to make sure that the batch file exits as quickly as possible. If at all possible, modify the batch file to run whatever program with the command. By default, returns immediately without waiting for the program to exit, so the batch file will continue to run and, presumably, exit immediately. Couple that with modifying your shortcut to run…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment