1.    17 Jul 2015 #1
    Join Date : May 2015
    Posts : 13
    Windows 10

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

    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 ComputersSystem Spec
  3.    17 Jul 2015 #3
    Join Date : May 2015
    Posts : 13
    Windows 10
    Thread Starter

    Quote Originally Posted by Fafhrd 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 ComputerSystem Spec
  4.    17 Jul 2015 #4
    Join Date : Oct 2014
    Posts : 391
    Windows 10x64 17035

    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 ComputerSystem Spec
  5.    17 Jul 2015 #5
    Join Date : May 2015
    Posts : 13
    Windows 10
    Thread Starter

    Quote Originally Posted by cyberrufus 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 ComputerSystem Spec
  6.    17 Jul 2015 #6
    Join Date : Oct 2014
    Posts : 391
    Windows 10x64 17035

    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 ComputerSystem Spec
  7.    17 Jul 2015 #7
    Join Date : Jul 2015
    Posts : 243
    Win 10 Pro 64bit

    Quote Originally Posted by cyberrufus 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 ComputerSystem Spec

 


Similar Threads
Thread Forum
Customization Add 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 to quickly create new files, folders, and shortcuts. You can right...
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 18:06.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums