Batch file - Unable to start a program minimized


  1. Posts : 13
    Windows 10
       #1

    Batch file - Unable to start a program minimized


    I've been trying to figure this out for a while now and I can't. I've looked at tons of small tips online to get this working but it doesn't work at all. I have a batch file which causes various programs to start when opened. However, one of them always appears above the rest because it loads, some time after the others. I want it to start minimized so the other program will above above every time.

    I have tried various ways including these;
    START /min steam.exe
    START /min "" "C:\Program Files (x86)\Steam\Steam.exe"


    None of them work. Any suggestions would be helpful. Thanks :)
      My Computer

  2. Fafhrd's Avatar
    Posts : 1,981
    Windows 10 x86 14383 Insider Pro and Core 10240
       #2

    Try making a shortcut for steam.exe on the desktop then in the properties of that shortcut set the program to run minimized. Then in the batch file use the location
    C:\Users\Username\Desktop\shortcutname.exe.lnk

    where username and shortcutname refer to your own user and programs name
      My Computers


  3. Posts : 13
    Windows 10
    Thread Starter
       #3

    Fafhrd said:
    Try making a shortcut for steam.exe on the desktop then in the properties of that shortcut set the program to run minimized. Then in the batch file use the location
    C:\Users\Username\Desktop\shortcutname.exe.lnk

    where username and shortcutname refer to your own user and programs name
    The program opens but not in minimized, and yeah, I changed the drop down option to minimized beside the "Run:" option.
    Is there a argument I can add to the end of the Target line to force it that way?
      My Computer


  4. Posts : 486
    Windows 10x64 17713
       #4

    Code:
    set s = createobject("WScript.Shell")
    s.run """C:\Program Files (x86)\Steam\Steam.exe""", 2
    Try creating a .vbs file with that and run it.
      My Computer


  5. Posts : 13
    Windows 10
    Thread Starter
       #5

    cyberrufus said:
    Code:
    set s = createobject("WScript.Shell")
    s.run """C:\Program Files (x86)\Steam\Steam.exe""", 2
    Try creating a .vbs file with that and run it.
    Ok, that started the program maximized again... don't know what you want me to do with it.
      My Computer


  6. Posts : 486
    Windows 10x64 17713
       #6

    If it doesn't work you can do with it what you wish. If a minimized shortcut or a standard .vbs command don't work you might be out of luck getting it to start minimized because both should work.

    Edit: Perhaps your best bet would be to see if a command line argument to start Steam minimized exists.
      My Computer


  7. Nus
    Posts : 242
    Win 10 Pro 64bit
       #7

    cyberrufus said:
    Perhaps your best bet would be to see if a command line argument to start Steam minimized exists.
    This.

    Use the -silent switch to start Steam and you just get the tray icon showing.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:14.
Find Us




Windows 10 Forums