How do I run a .bat file minimized?

Page 1 of 2 12 LastLast

  1. Posts : 8
    Windows 7 Ultimate 32-bit
       #1

    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 Computer


  2. Posts : 3,904
    Windows 7 Ultimate 64-bit
       #2

    Add this at the beginning on your code.

    Code:
    start /min myfile.bat
      My Computer


  3. Posts : 8
    Windows 7 Ultimate 32-bit
    Thread Starter
       #3

    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 Computer


  4. Posts : 3,904
    Windows 7 Ultimate 64-bit
       #4

    View the properties of your .bat,

    and start minimized
      My Computer


  5. Posts : 8
    Windows 7 Ultimate 32-bit
    Thread Starter
       #5

    Did that too, didn't work aswell.
      My Computer


  6. Posts : 3,904
    Windows 7 Ultimate 64-bit
       #6

    What is your script that you are trying to run?
      My Computer


  7. Posts : 8
    Windows 7 Ultimate 32-bit
    Thread Starter
       #7

    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 Computer


  8. Posts : 3,904
    Windows 7 Ultimate 64-bit
       #8

    So you have tried:

    Code:
    @echo OFF
    start /min min.exe
    explorer ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
      My Computer


  9. Posts : 8
    Windows 7 Ultimate 32-bit
    Thread Starter
       #9

    That worked! Thank you so much :)
      My Computer


  10. Posts : 3,904
    Windows 7 Ultimate 64-bit
       #10

    No worries,
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 10:04.
Find Us