1. Joined : May 2015
    Posts : 13
    Windows 10
       17 Jul 2015 #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 System SpecsSystem Spec


  2. Joined : Dec 2013
    Portsmouth Hampshire
    Posts : 1,197
    Windows 10 x86 14383 Insider Pro and Core 10240
       17 Jul 2015 #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 System SpecsSystem Spec


  3. Joined : May 2015
    Posts : 13
    Windows 10
       17 Jul 2015 #3

    Fafhrd said: View Post
    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 System SpecsSystem Spec


  4. Joined : Oct 2014
    Posts : 335
    Windows 10x64 15007
       17 Jul 2015 #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 System SpecsSystem Spec


  5. Joined : May 2015
    Posts : 13
    Windows 10
       17 Jul 2015 #5

    cyberrufus said: View Post
    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 System SpecsSystem Spec


  6. Joined : Oct 2014
    Posts : 335
    Windows 10x64 15007
       17 Jul 2015 #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 System SpecsSystem Spec


  7. Joined : Jul 2015
    Posts : 243
    Win 10 Pro 64bit
       17 Jul 2015 #7

    cyberrufus said: View Post
    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 System SpecsSystem Spec


 


Similar Threads
Thread Forum
Batch File - Add to New Context Menu in Windows 10
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
Tutorials
Unable to Launch Apps from Start Menu
I just upgraded from 10049 to 10061 using Windows Update and found that I cannot launch apps I have pinned to the Start Menu. 'This PC' was the first I tried and then several folders and applications I use often do no open when I try to open them...
General Support
How I add a shortcut for a DOS program to the Start Menu?
On the 32 bit version of W10, how do I add a shortcut for a DOS program to the Start Menu?
Software and Apps
System Info Batch File
Hi Everyone, I thought it may be interesting to get input from others regarding this batch file. I was hoping for suggestions about: Information to add to the report. Ways of making the current code more efficient. Etc... A while back i...
Chillout Room
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 03:55.
Find Us
Twitter Facebook Google+



Windows 10 Forums