Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How do I run a .bat file minimized?

13 Sep 2014   #1
Nervly

Windows 7 Ultimate 32-bit
 
 
How do I run a .bat file minimized?

Hey, everyone!

So, I created a .bat file that will open My Computer. I made it so the cmd window would start minimized because I don't want it to be seen. Now, if I open the .bat file, it will work just fine, the cmd window will not show up and My Computer will open. However, if I run the .bat file while I'm on my desktop, which is exactly what I want, it will not start minimized. The cmd window will still appear. How can I fix this?

I've tried creating a shortcut and setting it to start minimized (which was what I did on the text above), I tried installing this thing that will run it minimized but the cmd window will appear and disappear in a flash, I tried creating a .vbs file but I couldn't get it to even run, but nothing would work like I wanted.

Thanks in advance,
- Nervly


P.S.: I apologize if this is not in the correct section.


My System SpecsSystem Spec
.
13 Sep 2014   #2
HarriePateman

Windows 7 Ultimate 64-bit
 
 

Add this at the beginning on your code.

Code:
start /min myfile.bat
My System SpecsSystem Spec
13 Sep 2014   #3
Nervly

Windows 7 Ultimate 32-bit
 
 

I've done that too, but it still doesn't work.
The cmd window will still appear and the code will repeat itself over and over, opening endless Computer windows ending up on freezing my laptop.

Thanks for replying!
My System SpecsSystem Spec
.

13 Sep 2014   #4
HarriePateman

Windows 7 Ultimate 64-bit
 
 

View the properties of your .bat,

and start minimized
My System SpecsSystem Spec
13 Sep 2014   #5
Nervly

Windows 7 Ultimate 32-bit
 
 

Did that too, didn't work aswell.
My System SpecsSystem Spec
13 Sep 2014   #6
HarriePateman

Windows 7 Ultimate 64-bit
 
 

What is your script that you are trying to run?
My System SpecsSystem Spec
13 Sep 2014   #7
Nervly

Windows 7 Ultimate 32-bit
 
 

My current script is the following:

Code:
start C:\Windows\System32\cmd\min.exe
explorer ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
The first line is that thingy I installed to start it minimized. When I tried with the /start command, I replaced it for the first line.

I'm basically using Rainmeter with a Skyrim skin (it allows you to customize your desktop). It has several menus, and if I open one of them I can customize what options it will have. So I have one option to open Computer. So when I click that, it should run that .bat file (called OpenComputer.bat), but the .bat file must not appear, even when I'm on my desktop.
My System SpecsSystem Spec
13 Sep 2014   #8
HarriePateman

Windows 7 Ultimate 64-bit
 
 

So you have tried:

Code:
@echo OFF
start /min min.exe
explorer ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
My System SpecsSystem Spec
13 Sep 2014   #9
Nervly

Windows 7 Ultimate 32-bit
 
 

That worked! Thank you so much
My System SpecsSystem Spec
13 Sep 2014   #10
HarriePateman

Windows 7 Ultimate 64-bit
 
 

No worries,
My System SpecsSystem Spec
Reply

 How do I run a .bat file minimized?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Start minimized
I'm looking for a way or program for Windows XP and Windows 7 that will autostart a program on windows startup and run it minimized. I tried making a shortcut to the Startup folder and program starts in open window again. Specifically i tried Skype and i need the way or program for Skype because...
Software
Startup minimized
I installed a TP-Link wifi adapter and installed a configuration program for wifi and starts during Windows startup but i want it to start minimized or hidden. There is a shortcut in the Startup Windows folder. When i click its shortcut and select PROPERTIES and put it to start minimized this have...
General Discussion
How to run cmd.exe minimized?
How to run cmd.exe minimized? How to make the command line in Regedit? Thanks to everyone in advance Best Regards
General Discussion
Hide when minimized for WMP
Hi, I'm just new to Windows 7 and still exploring it. Can't help to compare it to my previous operating system which is Windows Vista. One thing I noticed is the Windows Media Player. In vista, once I minimized it, it will leave a small control panel on the bottom right of my screen where I have...
Music, Pictures & Video


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App